Skip to content
This repository was archived by the owner on Jan 1, 2020. It is now read-only.

Commit 4c68863

Browse files
committed
Edited IndexControllerTest for whitespace, phrasing.
1 parent 23e778d commit 4c68863

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

module/Application/test/Controller/IndexControllerTest.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ class IndexControllerTest extends AbstractHttpControllerTestCase
1414
{
1515
public function setUp()
1616
{
17-
18-
// Many of the configurations to load the module should still be applicable for tests.
19-
// Can override them here with test case specific values, such as,
20-
// sample view templates, path stacks, module_listener_options, etc.
17+
// The module configuration should still be applicable for tests.
18+
// You can override configuration here with test case specific values,
19+
// such as sample view templates, path stacks, module_listener_options,
20+
// etc.
2121
$configOverrides = [];
2222

2323
$this->setApplicationConfig(array_merge(
24-
include __DIR__.'/../../../../config/application.config.php',
24+
include __DIR__ . '/../../../../config/application.config.php',
2525
$configOverrides
2626
));
2727

@@ -32,24 +32,21 @@ public function testIndexActionCanBeAccessed()
3232
{
3333
$this->dispatch('/', 'GET');
3434
$this->assertResponseStatusCode(200);
35-
3635
$this->assertModuleName('application');
37-
$this->assertControllerName(IndexController::class); // as specified in router's controller name alias
36+
$this->assertControllerName(IndexController::class); // as specified in router's controller name alias
3837
$this->assertControllerClass('IndexController');
3938
$this->assertMatchedRouteName('home');
4039
}
4140

4241
public function testIndexActionViewModelTemplateRenderedWithinLayout()
4342
{
4443
$this->dispatch('/', 'GET');
45-
4644
$this->assertQuery('.container .jumbotron');
4745
}
4846

4947
public function testInvalidRouteDoesNotCrash()
5048
{
5149
$this->dispatch('/invalid/route', 'GET');
52-
5350
$this->assertResponseStatusCode(404);
5451
}
5552
}

0 commit comments

Comments
 (0)