public function testIndexActionWith404Page() { $this->dispatch('/404Page'); $this->assertResponseStatusCode(404); $this->assertModuleName('GcFrontend'); $this->assertControllerName('IndexController'); $this->assertControllerClass('IndexController'); $this->assertMatchedRouteName('cms'); }