/** * Test * * @return void */ public function testIndexActionWithOfflineWebsite() { $this->config->insert(array('identifier' => 'site_is_offline', 'value' => 1)); $this->dispatch('/404Page'); $this->assertResponseStatusCode(200); $this->assertModuleName('GcFrontend'); $this->assertControllerName('IndexController'); $this->assertControllerClass('IndexController'); $this->assertMatchedRouteName('cms'); $this->config->setValue('site_is_offline', 0); }