Mercurial > hg > isophonics-drupal-site
comparison core/modules/views/src/Tests/Wizard/WizardTestBase.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 1fec387a4317 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\views\Tests\Wizard; | |
4 | |
5 @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); | |
6 | |
7 use Drupal\views\Tests\ViewTestBase; | |
8 | |
9 /** | |
10 * Views UI wizard tests. | |
11 * | |
12 * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. | |
13 * Use \Drupal\Tests\views\Functional\Wizard\WizardTestBase. | |
14 */ | |
15 abstract class WizardTestBase extends ViewTestBase { | |
16 | |
17 /** | |
18 * Modules to enable. | |
19 * | |
20 * @var array | |
21 */ | |
22 public static $modules = ['node', 'views_ui', 'block', 'rest']; | |
23 | |
24 protected function setUp() { | |
25 parent::setUp(); | |
26 | |
27 // Create and log in a user with administer views permission. | |
28 $views_admin = $this->drupalCreateUser(['administer views', 'administer blocks', 'bypass node access', 'access user profiles', 'view all revisions']); | |
29 $this->drupalLogin($views_admin); | |
30 $this->drupalPlaceBlock('local_actions_block'); | |
31 } | |
32 | |
33 } |