0162519c15fcc9fd7e2d27e68c04b6e097e23201
[yaffs-website] / web / core / modules / views_ui / src / Tests / ReportTest.php
1 <?php
2
3 namespace Drupal\views_ui\Tests;
4 use Drupal\simpletest\WebTestBase;
5
6 /**
7  * Tests existence of the views plugin report.
8  *
9  * @group views_ui
10  */
11 class ReportTest extends WebTestBase {
12
13   /**
14    * Modules to enable.
15    *
16    * @var array
17    */
18   public static $modules = ['views', 'views_ui'];
19
20   /**
21    * Stores an admin user used by the different tests.
22    *
23    * @var \Drupal\user\User
24    */
25   protected $adminUser;
26
27   protected function setUp() {
28     parent::setUp();
29     $this->adminUser = $this->drupalCreateUser(['administer views']);
30   }
31
32   /**
33    * Tests the existence of the views plugin report.
34    */
35   public function testReport() {
36     $this->drupalLogin($this->adminUser);
37
38     // Test the report page.
39     $this->drupalGet('admin/reports/views-plugins');
40     $this->assertResponse(200, "Views report page exists");
41   }
42
43 }