Exemple #1
0
 /**
  * @test
  * @see DataSet/Assertion/createAndCopyContentRecordAndDiscardCopiedContentRecord.csv
  */
 public function createAndCopyContentAndDiscardCopiedContent()
 {
     parent::createAndCopyContentAndDiscardCopiedContent();
     $this->assertAssertionDataSet('createNCopyContentNDiscardCopiedContent');
     $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('Testing #1'));
     $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1 (copy 1)'));
 }
Exemple #2
0
 /**
  * @test
  * @see DataSet/Assertion/createAndCopyContentRecordAndDiscardCopiedContentRecord.csv
  */
 public function createAndCopyContentAndDiscardCopiedContent()
 {
     parent::createAndCopyContentAndDiscardCopiedContent();
     $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
     // Actually this is not required, since there's nothing to publish... but it's a test case!
     $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['copiedContentId'], FALSE);
     $this->assertAssertionDataSet('createNCopyContentNDiscardCopiedContent');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
     $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1 (copy 1)'));
 }