Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / views / src / Tests / Wizard / WizardTestBase.php
1 <?php
2
3 namespace Drupal\views\Tests\Wizard;
4 @trigger_error('\Drupal\views\Tests\Wizard\WizardTestBase is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead, use \Drupal\Tests\views\Functional\Wizard\WizardTestBase', E_USER_DEPRECATED);
5
6 use Drupal\views\Tests\ViewTestBase;
7
8 /**
9  * Views UI wizard tests.
10  *
11  * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0.
12  *   Use \Drupal\Tests\views\Functional\Wizard\WizardTestBase.
13  */
14 abstract class WizardTestBase extends ViewTestBase {
15
16   /**
17    * Modules to enable.
18    *
19    * @var array
20    */
21   public static $modules = ['node', 'views_ui', 'block', 'rest'];
22
23   protected function setUp() {
24     parent::setUp();
25
26     // Create and log in a user with administer views permission.
27     $views_admin = $this->drupalCreateUser(['administer views', 'administer blocks', 'bypass node access', 'access user profiles', 'view all revisions']);
28     $this->drupalLogin($views_admin);
29     $this->drupalPlaceBlock('local_actions_block');
30   }
31
32 }