public function testIndexActionWithValidPostData() { $postData = array('widget-0' => array('name' => 'test', 'identifier' => 'test', 'settings' => 'large_toolbox', 'custom_string' => '', 'chosen_list' => '')); $this->dispatch('/admin/module/social/addthis', 'POST', $postData); $this->assertResponseStatusCode(302); $this->assertModuleName('Social'); $this->assertControllerName('AddThisController'); $this->assertControllerClass('AddThisController'); $this->assertMatchedRouteName('module/social/addthis'); }