1
0
Fork 0
MySQLDumper/tests/functional/controllers/ErrorControllerTest.php

17 Zeilen
539 B
PHP

2011-06-10 21:55:32 +00:00
<?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');
}
}