GcContent\Controller\DocumentControllerTest::testPasteActionWithCutSession PHP Метод

testPasteActionWithCutSession() публичный Метод

Test
public testPasteActionWithCutSession ( ) : void
Результат void
    public function testPasteActionWithCutSession()
    {
        $document = DocumentModel::fromArray(array('name' => 'test', 'url_key' => 'about', '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();
        $session = new SessionContainer();
        $session->offsetSet('document-cut', $this->document->getId());
        $this->dispatch('/admin/content/document/paste/' . $document->getId());
        $this->assertResponseStatusCode(200);
        $this->assertModuleName('GcContent');
        $this->assertControllerName('DocumentController');
        $this->assertControllerClass('DocumentController');
        $this->assertMatchedRouteName('content/document/paste');
        $document->delete();
    }