GcContent\Controller\DocumentControllerTest::testCreateActionWithParent PHP Method

testCreateActionWithParent() public method

Test
public testCreateActionWithParent ( ) : void
return void
    public function testCreateActionWithParent()
    {
        $document = DocumentModel::fromArray(array('name' => 'test', 'url_key' => '', 'status' => DocumentModel::STATUS_ENABLE, 'user_id' => $this->user->getId(), 'document_type_id' => $this->documentType->getId(), 'view_id' => $this->view->getId(), 'layout_id' => $this->layout->getId(), 'parent_id' => null));
        $document->save();
        $this->dispatch('/admin/content/document/create/parent/' . $document->getId());
        $this->assertResponseStatusCode(200);
        $this->assertModuleName('GcContent');
        $this->assertControllerName('DocumentController');
        $this->assertControllerClass('DocumentController');
        $this->assertMatchedRouteName('content/document/create-w-parent');
        $document->delete();
    }