public function testLimitToEventWithValidEventUidIgnoresRegistrationOfOtherEvent() { $eventUid1 = $this->testingFramework->createRecord('tx_seminars_seminars'); $eventUid2 = $this->testingFramework->createRecord('tx_seminars_seminars'); $this->testingFramework->createRecord('tx_seminars_attendances', array('title' => 'Attendance 2', 'seminar' => $eventUid2)); $this->fixture->limitToEvent($eventUid1); $registrationBag = $this->fixture->build(); self::assertTrue($registrationBag->isEmpty()); }