PaymentAdministrationCategoryWebTest.php in Payment 8.2
File
tests/src/Functional/PaymentAdministrationCategoryWebTest.php
View source
<?php
namespace Drupal\Tests\payment\Functional;
use Drupal\Tests\BrowserTestBase;
class PaymentAdministrationCategoryWebTest extends BrowserTestBase {
public static $modules = array(
'payment',
);
protected $defaultTheme = 'stark';
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');
}
}