You are here

public function WorkbenchModerationExternalNodeUpdateTestCase::assertPublicationState in Workbench Moderation 7

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

Checks that the test node has the expected publication state.

Parameters

bool $expected: TRUE if the the node should be published, FALSE otherwise.

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

Return value

bool TRUE if the assertion succeeded, FALSE otherwise.

1 call to WorkbenchModerationExternalNodeUpdateTestCase::assertPublicationState()
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 160
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 assertPublicationState($expected, $message = '') {
  return $this
    ->assertEqual($expected, $this->node->status, $message);
}