Esempio n. 1
0
 /**
  * @test
  * @see DataSet/Assertion/localizePageRecord.csv
  */
 public function localizePage()
 {
     parent::localizePage();
     $this->assertAssertionDataSet('localizePage');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Page)->setField('title')->setValues('[Translate to Dansk:] Relations'));
 }
Esempio n. 2
0
 /**
  * @test
  * @see DataSet/Assertion/localizePageRecord.csv
  */
 public function localizePage()
 {
     parent::localizePage();
     $this->actionService->publishRecord(self::TABLE_PageOverlay, $this->recordIds['localizedPageOverlayId']);
     $this->assertAssertionDataSet('localizePage');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Page)->setField('title')->setValues('[Translate to Dansk:] Relations'));
 }