GcDevelopment\Controller\DocumentTypeControllerTest::testDeletePropertyAction PHP Method

testDeletePropertyAction() public method

Test
public testDeletePropertyAction ( ) : void
return void
    public function testDeletePropertyAction()
    {
        $session = new SessionContainer();
        $session->offsetSet('document-type', array('tabs' => array(1 => array('properties' => array()), 2 => array('properties' => array(5 => array('name' => 'Test', 'identifier' => 'Test', 'tab' => 2, 'description' => 'Test', 'is_required' => true, 'datatype' => 'Test'))))));
        $this->dispatch('/admin/development/document-type/delete-property', 'POST', array('property' => 5));
        $this->dispatch('/admin/development/document-type/delete-property');
        $this->assertResponseStatusCode(200);
        $this->assertModuleName('GcDevelopment');
        $this->assertControllerName('DocumentTypeController');
        $this->assertControllerClass('DocumentTypeController');
        $this->assertMatchedRouteName('development/document-type/delete-property');
    }