Пример #1
0
 /**
  * @test
  */
 public function getPreselectedOrganizerForTwoAvailableOrganizersReturnsZero()
 {
     $this->testingFramework->createAndLoginFrontEndUser();
     $this->testingFramework->createRecord('tx_seminars_organizers');
     $this->testingFramework->createRecord('tx_seminars_organizers');
     self::assertEquals(0, $this->fixture->getPreselectedOrganizer());
 }
Пример #2
0
 /**
  * @test
  */
 public function createAndLoginFrontEndUserWithFrontEndUserGroupLogsInFrontEndUser()
 {
     $this->subject->createFrontEndPage();
     $this->subject->createFakeFrontEnd();
     $frontEndUserGroupUid = $this->subject->createFrontEndUserGroup();
     $this->subject->createAndLoginFrontEndUser($frontEndUserGroupUid);
     self::assertTrue($this->subject->isLoggedIn());
 }
Пример #3
0
 /**
  * @test
  */
 public function logInUserOverwritesFormerRealLoggedInUser()
 {
     $this->testingFramework->createFakeFrontEnd();
     $this->testingFramework->createAndLoginFrontEndUser();
     $user = new Tx_Oelib_Model_FrontEndUser();
     $this->subject->logInUser($user);
     self::assertSame($user, $this->subject->getLoggedInUser());
 }