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