NewViewConfigSchemaTest.php in Zircon Profile 8.0
File
core/modules/views_ui/src/Tests/NewViewConfigSchemaTest.php
View source
<?php
namespace Drupal\views_ui\Tests;
use Drupal\simpletest\WebTestBase;
class NewViewConfigSchemaTest extends WebTestBase {
public static $modules = array(
'views_ui',
'node',
'comment',
'file',
'taxonomy',
'dblog',
'aggregator',
);
public function testNewViews() {
$this
->drupalLogin($this
->drupalCreateUser(array(
'administer views',
)));
$wizards = array(
'node',
'node_revision',
'users',
'comment',
'file_managed',
'taxonomy_term',
'watchdog',
'standard:aggregator_feed',
'standard:aggregator_item',
);
foreach ($wizards as $wizard_key) {
$edit = array();
$edit['label'] = $this
->randomString();
$edit['id'] = strtolower($this
->randomMachineName());
$edit['show[wizard_key]'] = $wizard_key;
$edit['description'] = $this
->randomString();
$this
->drupalPostForm('admin/structure/views/add', $edit, t('Save and edit'));
}
}
}