You are here

public function jDrupalConnectTest::testAnonymousConnect in jDrupal 8

Same name in this branch
  1. 8 src/Tests/jDrupalConnectTest.php \Drupal\jdrupal\Tests\jDrupalConnectTest::testAnonymousConnect()
  2. 8 tests/src/Unit/JDrupalConnectTest.php \Drupal\jdrupal\Tests\jDrupalConnectTest::testAnonymousConnect()

Test anonymous connection.

File

src/Tests/jDrupalConnectTest.php, line 30
jDrupal Connect tests.

Class

jDrupalConnectTest
Tests the jDrupal Connect resource.

Namespace

Drupal\jdrupal\Tests

Code

public function testAnonymousConnect() {

  // Create a user.
  $test_user = $this
    ->drupalCreateUser(array(
    'access content',
  ));

  // Check that our module did it's thing.
  $this
    ->assertText(t('The test module did its thing.'), "Found evidence of test module.");
}