You are here

public function Anonymouspublishingtest::checkPermission in Anonymous Publishing 7

Test A.1: Check permission to post.

1 call to Anonymouspublishingtest::checkPermission()
Anonymouspublishingtest::testAnonymouspublishing in tests/anonymous_publishing.test
The main test function.

File

tests/anonymous_publishing.test, line 79

Class

Anonymouspublishingtest
Tests for the Anonymous Publishing modules.

Code

public function checkPermission($type, $response) {
  $this
    ->drupalGet('/node/add/' . $type);
  $this
    ->assertText($response, 'A.1 (' . $type . '): The page content is present.');
}