public function jDrupalConnectTest::testAnonymousConnect in jDrupal 8
Same name in this branch
- 8 src/Tests/jDrupalConnectTest.php \Drupal\jdrupal\Tests\jDrupalConnectTest::testAnonymousConnect()
- 8 tests/src/Unit/JDrupalConnectTest.php \Drupal\jdrupal\Tests\jDrupalConnectTest::testAnonymousConnect()
Test anonymous connection.
File
- tests/
src/ Unit/ JDrupalConnectTest.php, line 30 - jDrupal Connect tests.
Class
- jDrupalConnectTest
- Tests the jDrupal Connect resource.
Namespace
Drupal\jdrupal\TestsCode
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.");
}