GcDevelopment\Controller\ViewControllerTest::testEditActionWithInvalidPostData PHP Method

testEditActionWithInvalidPostData() public method

Test
    public function testEditActionWithInvalidPostData()
    {
        $viewModel = ViewModel::fromArray(array('name' => 'ViewName', 'identifier' => 'ViewIdentifier'));
        $viewModel->save();
        $this->dispatch('/admin/development/view/edit/' . $viewModel->getId(), 'POST', array());
        $this->assertResponseStatusCode(200);
        $this->assertModuleName('GcDevelopment');
        $this->assertControllerName('ViewController');
        $this->assertControllerClass('ViewController');
        $this->assertMatchedRouteName('development/view/edit');
        $viewModel->delete();
    }