/** * @test */ public function setChildren2ForObjectStorageContainingChild2SetsChildren2() { $children2 = new \FIXTURE\TestExtension\Domain\Model\Child2(); $objectStorageHoldingExactlyOneChildren2 = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $objectStorageHoldingExactlyOneChildren2->attach($children2); $this->subject->setChildren2($objectStorageHoldingExactlyOneChildren2); self::assertAttributeEquals($objectStorageHoldingExactlyOneChildren2, 'children2', $this->subject); }