예제 #1
0
파일: TagTest.php 프로젝트: alphadevx/alpha
 /**
  * Testing the loadTags() method for accessing the tags on a given object type directly.
  *
  * @since 1.0
  */
 public function testLoadTags()
 {
     $this->article->save();
     $tagsA = $this->article->getPropObject('tags')->getRelatedObjects();
     $tag = new Tag();
     $tagsB = $tag->loadTags('Alpha\\Model\\Article', $this->article->getOID());
     $this->assertEquals(count($tagsA), count($tagsB), 'testing the loadTags() method for accessing the tags on a given object type directly');
 }