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