1
0
Fork 0
forked from lino/radar-wp

Make sure radar depenency is in repo, and upgrade for Price Categories.

This commit is contained in:
ekes 2015-02-24 21:58:33 +01:00
parent c83d681db3
commit 70825293ae
124 changed files with 29219 additions and 19 deletions

View file

@ -0,0 +1,25 @@
<?php
namespace Radar\Connect\Tests\Entity;
use Radar\Connect\Entity\TaxonomyTerm;
class TaxonomyTermTest extends EntityTestCase {
public function testRequestParse() {
$response = $this->getMockResponse('taxonomy_term');
$term = $this->parseResponse($response);
$this->assertEquals(count($term), 1);
$term = reset($term);
$this->assertTrue($term instanceof TaxonomyTerm);
$this->assertEquals($term->getTitle(), 'action/protest/camp');
$this->assertEquals($term->apiUri(), 'https://new-radar.squat.net/api/1.0/taxonomy_term/e85a688d-03ac-4008-a3cb-1adb7e8f718a');
$this->assertEquals($term->getUuid(), 'e85a688d-03ac-4008-a3cb-1adb7e8f718a');
$this->assertEquals($term->getVuuid(), null);
$this->assertEquals($term->getInternalId(), 7);
$this->assertEquals($term->getInternalVid(), null);
$this->assertEquals($term->getNodeCount(), 10);
$this->assertEquals($term->getVocabulary(), 'category');
}
}