public testEditActionWithWrongId ( ) : void | ||
return | void |
public function testEditActionWithWrongId()
{
$this->dispatch('/admin/content/document/edit/999');
$this->assertResponseStatusCode(302);
$this->assertModuleName('GcContent');
$this->assertControllerName('DocumentController');
$this->assertControllerClass('DocumentController');
$this->assertMatchedRouteName('content/document/edit');
}