/** * @test * @see DataSet/Assertion/createPageRecord.csv */ public function createPage() { parent::createPage(); $this->assertAssertionDataSet('createPage'); $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections(); $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Page)->setField('title')->setValues('Testing #1')); }
/** * @test * @see DataSet/Assertion/createPageRecord.csv */ public function createPage() { parent::createPage(); $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['newPageId']); $this->assertAssertionDataSet('createPage'); $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0)->getResponseSections(); $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Page)->setField('title')->setValues('Testing #1')); }