public function testCreateActionWithPostData() { $this->dispatch('/admin/content/document/create', 'POST', array('document-name' => 'test', 'document-url_key' => '', 'document_type' => $this->documentType->getId())); $this->assertResponseStatusCode(302); $this->assertModuleName('GcContent'); $this->assertControllerName('DocumentController'); $this->assertControllerClass('DocumentController'); $this->assertMatchedRouteName('content/document/create'); }