UiPageTest.php in Config Pages 8.2
File
tests/src/Functional/UiPageTest.php
View source
<?php
namespace Drupal\Tests\config_pages\Functional;
use Drupal\Tests\BrowserTestBase;
class UiPageTest extends BrowserTestBase {
protected static $modules = [
'config_pages',
];
protected $defaultTheme = 'stable';
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 are no config page entities 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 are no config page type entities yet.');
}
}
Classes
Name |
Description |
UiPageTest |
Tests that the ConfigPages UI pages are reachable. |