public testConfigActionWithInvalidPostData ( ) : void | ||
Résultat | void |
public function testConfigActionWithInvalidPostData()
{
$postData = array('config' => array('language' => '', '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(200);
$this->assertModuleName('Social');
$this->assertControllerName('AddThisController');
$this->assertControllerClass('AddThisController');
$this->assertMatchedRouteName('module/social/addthis/config');
}