public function testConfigActionWithValidPostData() { $postData = array('config' => array('language' => 'fr', 'data_ga_property_id' => 'azdazd', 'profile_id' => '', 'show_stats' => '1', 'password' => '', 'username' => '', 'data_track_clickback' => '1', 'data_track_addressbar' => '1', 'json_config' => NULL)); $this->dispatch('/admin/module/social/addthis/config', 'POST', $postData); $this->assertResponseStatusCode(302); $this->assertModuleName('Social'); $this->assertControllerName('AddThisController'); $this->assertControllerClass('AddThisController'); $this->assertMatchedRouteName('module/social/addthis/config'); }