You are here

public function Anonymouspublishingtest::createWithAlias in Anonymous Publishing 7

Test A.5: Create node and require a 6 character alias.

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

File

tests/anonymous_publishing.test, line 113

Class

Anonymouspublishingtest
Tests for the Anonymous Publishing modules.

Code

public function createWithAlias($type, $response, $length) {
  variable_set('anonymous_publishing_cl_alias', 3);
  variable_set('anonymous_publishing_cl_requiredchar', 6);
  $this
    ->createNode($type, 'emailadr@example.com', $this
    ->randomName($length));
  $this
    ->assertText($response, 'A.5: The page content is present. (' . $response . ')');
}