Example #1
0
 /**
  * @test
  * @see DataSet/Assertion/moveParentContentRecordToDifferentPageAndChangeSorting.csv
  */
 public function moveParentContentToDifferentPageAndChangeSorting()
 {
     parent::moveParentContentToDifferentPageAndChangeSorting();
     $this->assertAssertionDataSet('moveParentContentToDifferentPageNChangeSorting');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2', 'Regular Element #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'));
     $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'));
 }
Example #2
0
 /**
  * @test
  * @see DataSet/Assertion/moveParentContentRecordToDifferentPageAndChangeSorting.csv
  */
 public function moveParentContentToDifferentPageAndChangeSorting()
 {
     parent::moveParentContentToDifferentPageAndChangeSorting();
     $this->actionService->publishRecords(array(self::TABLE_Content => array(self::VALUE_ContentIdFirst, self::VALUE_ContentIdLast)));
     $this->assertAssertionDataSet('moveParentContentToDifferentPageNChangeSorting');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections('Default', 'Extbase:list()');
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2', 'Regular Element #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'));
     $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'));
 }