ReportTest.php

Same filename in other branches
  1. 8.9.x core/modules/views_ui/tests/src/Functional/ReportTest.php
  2. 10 core/modules/views_ui/tests/src/Functional/ReportTest.php
  3. 11.x core/modules/views_ui/tests/src/Functional/ReportTest.php

Namespace

Drupal\Tests\views_ui\Functional

File

core/modules/views_ui/tests/src/Functional/ReportTest.php

View source
<?php

namespace Drupal\Tests\views_ui\Functional;


/**
 * Tests existence of the views plugin report.
 *
 * @group views_ui
 */
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\Entity\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);
    }

}

Classes

Title Deprecated Summary
ReportTest Tests existence of the views plugin report.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.