public testEditActionWithPostData ( ) : void | ||
return | void |
public function testEditActionWithPostData()
{
$this->dispatch('/admin/content/document/edit/' . $this->document->getId(), 'POST', array('document-name' => 'test', 'document-show_in_nav' => true, 'document-url_key' => 'test', 'document-view' => $this->view->getId(), 'document-layout' => $this->layout->getId()));
$this->assertResponseStatusCode(302);
$this->assertModuleName('GcContent');
$this->assertControllerName('DocumentController');
$this->assertControllerClass('DocumentController');
$this->assertMatchedRouteName('content/document/edit');
}