Ejemplo n.º 1
0
 /**
  * @test
  * @see DataSet/Assertion/deleteParentContentRecordAndDiscardDeletedParentRecord.csv
  */
 public function deleteParentContentAndDiscardDeletedParent()
 {
     parent::deleteParentContentAndDiscardDeletedParent();
     $this->assertAssertionDataSet('deleteParentContentNDiscardDeletedParent');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
 }
Ejemplo n.º 2
0
 /**
  * @test
  * @see DataSet/Assertion/deleteParentContentRecordAndDiscardDeletedParentRecord.csv
  */
 public function deleteParentContentAndDiscardDeletedParent()
 {
     parent::deleteParentContentAndDiscardDeletedParent();
     // Actually this is not required, since there's nothing to publish... but it's a test case!
     $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast, FALSE);
     $this->assertAssertionDataSet('deleteParentContentNDiscardDeletedParent');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
 }