class ReportTest in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views_ui/tests/src/Functional/ReportTest.php \Drupal\Tests\views_ui\Functional\ReportTest
- 9 core/modules/views_ui/tests/src/Functional/ReportTest.php \Drupal\Tests\views_ui\Functional\ReportTest
Tests existence of the views plugin report.
@group views_ui
Hierarchy
- class \Drupal\Tests\BrowserTestBase extends \PHPUnit\Framework\TestCase uses \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, FunctionalTestSetupTrait, TestSetupTrait, BlockCreationTrait, ConfigTestTrait, ExtensionListTestTrait, ContentTypeCreationTrait, NodeCreationTrait, RandomGeneratorTrait, TestRequirementsTrait, PhpUnitWarnings, UiHelperTrait, UserCreationTrait, XdebugRequestTrait
- class \Drupal\Tests\views\Functional\ViewTestBase uses ViewResultAssertionTrait
- class \Drupal\Tests\views_ui\Functional\UITestBase
- class \Drupal\Tests\views_ui\Functional\ReportTest
- class \Drupal\Tests\views_ui\Functional\UITestBase
- class \Drupal\Tests\views\Functional\ViewTestBase uses ViewResultAssertionTrait
Expanded class hierarchy of ReportTest
File
- core/
modules/ views_ui/ tests/ src/ Functional/ ReportTest.php, line 10
Namespace
Drupal\Tests\views_ui\FunctionalView source
class ReportTest extends UITestBase {
/**
* Modules to enable.
*
* @var array
*/
protected static $modules = [
'views',
'views_ui',
];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Stores an admin user used by the different tests.
*
* @var \Drupal\user\User
*/
protected $adminUser;
/**
* Tests the existence of the views plugin report.
*/
public function testReport() {
$this
->drupalLogin($this->adminUser);
// Test the report page.
$this
->drupalGet('admin/reports/views-plugins');
$this
->assertSession()
->statusCodeEquals(200);
}
}