コード例 #1
0
 /**
  * Tests the addTaxonomy and getTaxonomy methods
  *
  * @return  void
  *
  * @since   3.1
  */
 public function testTaxonomy()
 {
     // Add the test item to the taxonomy
     $this->object->addTaxonomy('testing', 'Test Item');
     // Retrieve our testing branch
     $taxonomy = $this->object->getTaxonomy('testing');
     // Verify our test item is an instance of JObject
     $this->assertInstanceOf('JObject', $taxonomy['Test Item']);
 }