Ejemplo n.º 1
0
 /**
  * @test
  * @see DataSet/Assertion/modifyPageRecord.csv
  */
 public function modifyPage()
 {
     parent::modifyPage();
     $this->assertAssertionDataSet('modifyPage');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Page)->setField('title')->setValues('Testing #1'));
     $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
 }
Ejemplo n.º 2
0
 /**
  * @test
  * @see DataSet/Assertion/modifyPageRecord.csv
  */
 public function modifyPage()
 {
     parent::modifyPage();
     $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
     $this->assertAssertionDataSet('modifyPage');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Page)->setField('title')->setValues('Testing #1'));
     $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
 }