/** * @test */ public function setExcludePagesForObjectStorageContainingExcludePagesSetsExcludePages() { $page = new \DERHANSEN\SfBanners\Domain\Model\Page(); $objectStorageHoldingExactlyOnePage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $objectStorageHoldingExactlyOnePage->attach($page); $this->fixture->setExcludepages($objectStorageHoldingExactlyOnePage); $this->assertAttributeEquals($objectStorageHoldingExactlyOnePage, 'excludepages', $this->fixture); }