/** * @test */ public function setRemindersForObjectStorageContainingReminderSetsReminders() { $reminder = new \KevinDitscheid\KdCalendar\Domain\Model\Reminder(); $objectStorageHoldingExactlyOneReminders = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $objectStorageHoldingExactlyOneReminders->attach($reminder); $this->subject->setReminders($objectStorageHoldingExactlyOneReminders); $this->assertAttributeEquals($objectStorageHoldingExactlyOneReminders, 'reminders', $this->subject); }