You are here

public function PaymentAdministrationCategoryWebTest::testOverview in Payment 8.2

Tests administrative overview.

File

tests/src/Functional/PaymentAdministrationCategoryWebTest.php, line 27

Class

PaymentAdministrationCategoryWebTest
Tests the Payment category in the administration UI.

Namespace

Drupal\Tests\payment\Functional

Code

public function testOverview() {
  $this
    ->drupalGet('admin/config/services');
  $this
    ->assertNoLink('Payment');
  $this
    ->drupalGet('admin/config/services/payment');
  $this
    ->assertResponse('403');
  $this
    ->drupalLogin($this
    ->drupalCreateUser(array(
    'access administration pages',
  )));
  $this
    ->drupalGet('admin/config');
  $this
    ->drupalGet('admin/config/services');
  $this
    ->assertLink('Payment');
  $this
    ->drupalGet('admin/config/services/payment');
  $this
    ->assertResponse('200');
}