/** * @test */ public function myEnteredEventsViewHidesRegistrationColumn() { $editorGroupUid = $this->testingFramework->createFrontEndUserGroup(); $this->fixture->setConfigurationValue('what_to_display', 'my_entered_events'); $this->fixture->setConfigurationValue('eventEditorFeGroupID', $editorGroupUid); $this->testingFramework->createAndLoginFrontEndUser($editorGroupUid); $this->fixture->main('', array()); self::assertFalse($this->fixture->isSubpartVisible('LISTHEADER_WRAPPER_REGISTRATION')); }
/** * @test */ public function limitToAttendeeWithNullFindsRegistrationsWithOtherAttendee() { $feUserGroupUid = $this->testingFramework->createFrontEndUserGroup(); $feUserUid = $this->testingFramework->createFrontEndUser($feUserGroupUid); $feUserUid2 = $this->testingFramework->createFrontEndUser($feUserGroupUid); $eventUid = $this->testingFramework->createRecord('tx_seminars_seminars'); $registrationUid = $this->testingFramework->createRecord('tx_seminars_attendances', array('seminar' => $eventUid, 'user' => $feUserUid2)); /** @var tx_seminars_Model_FrontEndUser $user */ $user = tx_oelib_MapperRegistry::get('tx_seminars_Mapper_FrontEndUser')->find($feUserUid); $this->fixture->limitToAttendee($user); $this->fixture->limitToAttendee(NULL); $bag = $this->fixture->build(); self::assertEquals($registrationUid, $bag->current()->getUid()); }