Mercurial > hg > isophonics-drupal-site
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/modules/views/src/Tests/Wizard/WizardTestBase.php Wed Nov 29 16:09:58 2017 +0000 @@ -0,0 +1,33 @@ +<?php + +namespace Drupal\views\Tests\Wizard; + +@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); + +use Drupal\views\Tests\ViewTestBase; + +/** + * Views UI wizard tests. + * + * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. + * Use \Drupal\Tests\views\Functional\Wizard\WizardTestBase. + */ +abstract class WizardTestBase extends ViewTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = ['node', 'views_ui', 'block', 'rest']; + + protected function setUp() { + parent::setUp(); + + // Create and log in a user with administer views permission. + $views_admin = $this->drupalCreateUser(['administer views', 'administer blocks', 'bypass node access', 'access user profiles', 'view all revisions']); + $this->drupalLogin($views_admin); + $this->drupalPlaceBlock('local_actions_block'); + } + +}