You are here

public function ShareThisBlockAdminTest::testAccessAdminPage in Sharethis block 8

Tests that a user with the correct permissions can access the admin page.

Throws

ExpectationException

File

tests/src/Functional/ShareThisBlockAdminTest.php, line 61

Class

ShareThisBlockAdminTest
Class SettingsPageTest

Namespace

Drupal\Tests\sharethis_block\Functional

Code

public function testAccessAdminPage() {
  $this
    ->drupalGet('/admin/config/user-interface/sharethis');
  $this
    ->assertSession()
    ->statusCodeEquals(200);
}