Dieser Commit ist enthalten in:
Ursprung
2b21070b1a
Commit
f7a7c71f86
1583 geänderte Dateien mit 454759 neuen und 0 gelöschten Zeilen
17
tests/functional/controllers/ErrorControllerTest.php
Normale Datei
17
tests/functional/controllers/ErrorControllerTest.php
Normale Datei
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
/**
|
||||
* @group Error
|
||||
*/
|
||||
class Msd_Application_Controller_ErrorControllerTest
|
||||
extends ControllerTestCase
|
||||
{
|
||||
public function testErrorControllerCatchesInvalidPageCalls()
|
||||
{
|
||||
$this->dispatch('/invalid/page');
|
||||
$this->assertResponseCode(404);
|
||||
$this->assertQueryContentContains('h2', 'Page not found');
|
||||
$this->assertQueryContentContains('#controller', 'invalid');
|
||||
$this->assertQueryContentContains('#action', 'page');
|
||||
$this->assertQueryContentContains('#module', 'default');
|
||||
}
|
||||
}
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren