Exemplo n.º 1
0
 /**
  * @test
  * @see DataSet/Assertion/copyPage.csv
  */
 public function copyPage()
 {
     parent::copyPage();
     $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
     $this->assertAssertionDataSet('copyPage');
     $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'])->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Page)->setField('title')->setValues('Relations'));
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1', 'Regular Element #2'));
     $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentIdFirst'])->setRecordField('categories')->setTable(self::TABLE_Category)->setField('title')->setValues('Category A', 'Category B'));
     $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentIdLast'])->setRecordField('categories')->setTable(self::TABLE_Category)->setField('title')->setValues('Category B', 'Category C'));
 }