Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Praesidiarius committed Feb 9, 2020
1 parent a7ce18f commit 9b954de
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions module/Application/test/Controller/IndexControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,6 @@ public function testIndexActionCanBeAccessed() {
$this->assertMatchedRouteName('home');
}

public function testIndexActionCanBeAccessedWithSession() {

// $this->initTestSession();
$this->dispatch('/login', 'POST', ['plc_login_user'=>'[email protected]','plc_login_pass'=>'1234']);
$this->assertResponseStatusCode(302);
/**
* another day...
$this->dispatch('/', 'GET');
$this->assertResponseStatusCode(200);
$this->assertModuleName('application');
$this->assertControllerName(IndexController::class); // as specified in router's controller name alias
$this->assertControllerClass('IndexController');
$this->assertMatchedRouteName('home');
$this->assertRedirectTo('login');
* */
}

public function testInvalidRouteDoesNotCrash() {
$this->initTestSession();
Expand Down

0 comments on commit 9b954de

Please sign in to comment.