public function testLimitToExistingUsersDoesNotFindRegistrationWithDeletedUser() { $feUserUid = $this->testingFramework->createFrontEndUser(); $this->testingFramework->changeRecord('fe_users', $feUserUid, array('deleted' => 1)); $this->testingFramework->createRecord('tx_seminars_attendances', array('user' => $feUserUid)); $this->fixture->limitToExistingUsers(); $bag = $this->fixture->build(); self::assertTrue($bag->isEmpty()); }