Issue #2406657 by neclimdul, Lendude: Fatal error visiting Views Plugin report
parent
36c8416ff9
commit
3b0178d729
|
@ -13,6 +13,7 @@ use Drupal\Core\Controller\ControllerBase;
|
||||||
use Drupal\Core\Url;
|
use Drupal\Core\Url;
|
||||||
use Drupal\views\ViewExecutable;
|
use Drupal\views\ViewExecutable;
|
||||||
use Drupal\views\ViewEntityInterface;
|
use Drupal\views\ViewEntityInterface;
|
||||||
|
use Drupal\views\Views;
|
||||||
use Drupal\views_ui\ViewUI;
|
use Drupal\views_ui\ViewUI;
|
||||||
use Drupal\views\ViewsData;
|
use Drupal\views\ViewsData;
|
||||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||||
|
|
|
@ -0,0 +1,48 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Contains \Drupal\views_ui\Tests\ReportTest.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Drupal\views_ui\Tests;
|
||||||
|
use Drupal\simpletest\WebTestBase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tests existence of the views plugin report.
|
||||||
|
*
|
||||||
|
* @group views_ui
|
||||||
|
*/
|
||||||
|
class ReportTest extends WebTestBase {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Modules to enable.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
public static $modules = array('views', 'views_ui');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stores an admin user used by the different tests.
|
||||||
|
*
|
||||||
|
* @var \Drupal\user\User
|
||||||
|
*/
|
||||||
|
protected $adminUser;
|
||||||
|
|
||||||
|
protected function setUp() {
|
||||||
|
parent::setUp();
|
||||||
|
$this->adminUser = $this->drupalCreateUser(array('administer views'));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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->assertResponse(200, "Views report page exists");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue