UiPageTest.php in Config Pages 8.3
File
tests/src/Functional/UiPageTest.php
View source
<?php
namespace Drupal\config_pages\tests\Functional;
use Drupal\Tests\BrowserTestBase;
class UiPageTest extends BrowserTestBase {
protected static $modules = [
'config_pages',
];
public function testConfigPagesPage() {
$account = $this
->drupalCreateUser([
'access config_pages overview',
]);
$this
->drupalLogin($account);
$this
->drupalGet('admin/structure/config_pages');
$this
->assertSession()
->statusCodeEquals(200);
$this
->assertSession()
->pageTextContains('There is no Config page yet.');
}
public function testConfigPagesTypesPage() {
$account = $this
->drupalCreateUser([
'administer config_pages types',
]);
$this
->drupalLogin($account);
$this
->drupalGet('admin/structure/config_pages/types');
$this
->assertSession()
->statusCodeEquals(200);
$this
->assertSession()
->pageTextContains('There is no Config page type yet.');
}
}
Classes
Name |
Description |
UiPageTest |
Tests that the ConfigPages UI pages are reachable. |