Ejemplo n.º 1
0
 /**
  * @test
  */
 public function hasAccessMessageForDeletedSeminarUidAndUserLoggedInReturnsWrongSeminarMessage()
 {
     $groupUid = $this->testingFramework->createFrontEndUserGroup(array('title' => 'test'));
     $this->testingFramework->createAndLoginFrontEndUser($groupUid);
     $this->fixture->setObjectUid($this->testingFramework->createRecord('tx_seminars_seminars', array('deleted' => 1)));
     self::assertContains($this->fixture->translate('message_wrongSeminarNumber'), $this->fixture->hasAccessMessage());
 }
Ejemplo n.º 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());
 }