public function testDatabaseActionWithPostData() { $session = new SessionContainer(); $session->offsetSet('install', array('lang' => 'en_GB')); $this->dispatch('/install/database-configuration', 'POST', array('driver' => GC_DATABASE_DRIVER, 'username' => GC_DATABASE_USERNAME, 'dbname' => GC_DATABASE_DATABASE, 'hostname' => GC_DATABASE_HOSTNAME, 'password' => GC_DATABASE_PASSWORD)); $this->assertResponseStatusCode(302); $this->assertModuleName('GcFrontend'); $this->assertControllerName('InstallController'); $this->assertControllerClass('InstallController'); $this->assertMatchedRouteName('install/database'); }