Exemple #1
0
 /**
  * @test
  * @see DataSet/modifyNDiscardNModifyParentWHotelChild.csv
  */
 public function modifyAndDiscardAndModifyParentWithHotelChild()
 {
     parent::modifyAndDiscardAndModifyParentWithHotelChild();
     $this->actionService->publishRecords(array(self::TABLE_Content => array(self::VALUE_ContentIdFirst), self::TABLE_Hotel => array(3, 4)));
     $this->assertAssertionDataSet('modifyNDiscardNModifyParentWHotelChild');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
     $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()->setTable(self::TABLE_Hotel)->setField('header')->setValues('Testing #1'));
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #2'));
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Hotel)->setField('title')->setValues('Testing #2'));
 }