You are here

public function WorkbenchModerationExternalNodeUpdateTestCase::assertNoPublishedRecord in Workbench Moderation 7.3

Same name and namespace in other branches
  1. 7 tests/external_node_update.test \WorkbenchModerationExternalNodeUpdateTestCase::assertNoPublishedRecord()

Checks if the node is not marked as 'published' in the node history table.

Parameters

string $message: The message to display along with the assertion.

Return value

bool TRUE if the assertion succeeded, FALSE otherwise.

1 call to WorkbenchModerationExternalNodeUpdateTestCase::assertNoPublishedRecord()
WorkbenchModerationExternalNodeUpdateTestCase::testNodeSave in tests/external_node_update.test
Tests if nodes can be moderated by third party modules.

File

tests/external_node_update.test, line 144
Tests moderation states when nodes are (un)published by other modules.

Class

WorkbenchModerationExternalNodeUpdateTestCase
@file Tests moderation states when nodes are (un)published by other modules.

Code

public function assertNoPublishedRecord($message = '') {
  $record = $this
    ->getModerationRecord('published');
  return $this
    ->assertFalse($record, $message);
}