3 namespace Drupal\views_ui\Tests;
5 use Drupal\simpletest\WebTestBase;
8 * Tests configuration schema against new views.
12 class NewViewConfigSchemaTest extends WebTestBase {
19 public static $modules = ['views_ui', 'node', 'comment', 'file', 'taxonomy', 'dblog', 'aggregator'];
22 * Tests creating brand new views.
24 public function testNewViews() {
25 $this->drupalLogin($this->drupalCreateUser(['administer views']));
27 // Create views with all core Views wizards.
29 // Wizard with their own classes.
37 // Standard derivative classes.
38 'standard:aggregator_feed',
39 'standard:aggregator_item',
41 foreach ($wizards as $wizard_key) {
43 $edit['label'] = $this->randomString();
44 $edit['id'] = strtolower($this->randomMachineName());
45 $edit['show[wizard_key]'] = $wizard_key;
46 $edit['description'] = $this->randomString();
47 $this->drupalPostForm('admin/structure/views/add', $edit, t('Save and edit'));