public function testLoadRelation() { $termType = new KVDthes_TermType('PT', 'voorkeursterm'); $term2 = new KVDthes_TestTerm(508, $this->sessie, 'kapellen', $termType, 'bouwkundig erfgoed'); $this->object->loadRelation(new KVDthes_Relation(KVDthes_Relation::REL_RT, $term2)); $this->object->setLoadState(KVDthes_Term::LS_REL); $this->object->setLoadState(KVDthes_Term::LS_MATCH); $term2->setLoadState(KVDthes_Term::LS_REL); $this->assertEquals(1, count($this->object->getRelations())); $this->assertEquals(1, count($term2->getRelations())); }