Exemple #1
0
 public function testSetSubclass()
 {
     $newSubclass = new Subclass();
     $newSubclass->setId(1414);
     $this->queueItem->setSubclass($newSubclass);
     $this->assertEquals(1414, $this->queueItem->getSubclass()->getId());
 }
Exemple #2
0
 public function testSetSubclass()
 {
     $subclass = new Subclass();
     $subclass->setId(14);
     $this->security->setSubclass($subclass);
     $this->assertEquals(14, $this->security->getSubclass()->getId());
 }
Exemple #3
0
 public function testAddSubclass()
 {
     $newSubclass = new Subclass();
     $newSubclass->setId(56);
     $this->assetClass->addSubclass($newSubclass);
     $subclasses = $this->assetClass->getSubclasses();
     $this->assertCount(3, $subclasses);
     $this->assertEquals(79, $subclasses[79]->getId());
     $this->assertEquals(100, $subclasses[100]->getId());
     $this->assertEquals(56, $subclasses[56]->getId());
 }