setApplicationConfig(ArrayUtils::merge( include __DIR__ . '/../../../../config/application.config.php', $configOverrides )); parent::setUp(); } public function testIndexActionCanBeAccessed() { $this->dispatch('/', 'GET'); $this->assertResponseStatusCode(200); $this->assertModuleName('application'); $this->assertControllerName(IndexController::class); // as specified in router's controller name alias $this->assertControllerClass('IndexController'); $this->assertMatchedRouteName('home'); } public function testIndexActionViewModelTemplateRenderedWithinLayout() { $this->dispatch('/', 'GET'); $this->assertQuery('.container .jumbotron'); } public function testInvalidRouteDoesNotCrash() { $this->dispatch('/invalid/route', 'GET'); $this->assertResponseStatusCode(404); } }