Commit 6fd72a2c authored by webchick's avatar webchick
Browse files

Issue #2095115 by beejeebus: Delete ViewTestConfigInstaller and have...

Issue #2095115 by beejeebus: Delete ViewTestConfigInstaller and have ViewTestData create views, not 'import' them.
parent a4f9d8e3
......@@ -56,7 +56,7 @@ protected function setUp() {
$this->installSchema('aggregator', array('aggregator_item', 'aggregator_feed', 'aggregator_category_feed', 'aggregator_category', 'aggregator_category_item'));
ViewTestData::importTestViews(get_class($this), array('aggregator_test_views'));
ViewTestData::createTestViews(get_class($this), array('aggregator_test_views'));
$this->itemStorageController = $this->container->get('entity.manager')->getStorageController('aggregator_item');
$this->feedStorageController = $this->container->get('entity.manager')->getStorageController('aggregator_feed');
......
......@@ -43,7 +43,7 @@ public static function getInfo() {
protected function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('block_test_views'));
ViewTestData::createTestViews(get_class($this), array('block_test_views'));
$this->enableViewsTestModule();
}
......
......@@ -32,7 +32,7 @@ abstract class CommentTestBase extends ViewTestBase {
function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('comment_test_views'));
ViewTestData::createTestViews(get_class($this), array('comment_test_views'));
// Add two users, create a node with the user1 as author and another node
// with user2 as author. For the second node add a comment from user1.
......
......@@ -52,7 +52,7 @@ public static function getInfo() {
protected function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('contact_test_views'));
ViewTestData::createTestViews(get_class($this), array('contact_test_views'));
$this->userData = $this->container->get('user.data');
}
......
......@@ -51,7 +51,7 @@ function setUp() {
$user->langcode = 'en';
$user->save();
ViewTestData::importTestViews(get_class($this), array('content_translation_test_views'));
ViewTestData::createTestViews(get_class($this), array('content_translation_test_views'));
}
/**
......
......@@ -48,7 +48,7 @@ protected function setUp() {
$this->enableModules(array('system', 'dblog'));
$this->installSchema('dblog', array('watchdog'));
ViewTestData::importTestViews(get_class($this), array('dblog_test_views'));
ViewTestData::createTestViews(get_class($this), array('dblog_test_views'));
}
/**
......
......@@ -51,7 +51,7 @@ abstract class FieldTestBase extends ViewTestBase {
protected function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('field_test_views'));
ViewTestData::createTestViews(get_class($this), array('field_test_views'));
}
function setUpFields($amount = 3) {
......
......@@ -40,7 +40,7 @@ public static function getInfo() {
*/
protected function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('file_test_views'));
ViewTestData::createTestViews(get_class($this), array('file_test_views'));
}
/**
......
......@@ -40,7 +40,7 @@ public static function getInfo() {
protected function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('forum_test_views'));
ViewTestData::createTestViews(get_class($this), array('forum_test_views'));
}
......
......@@ -25,7 +25,7 @@ abstract class NodeTestBase extends ViewTestBase {
protected function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('node_test_views'));
ViewTestData::createTestViews(get_class($this), array('node_test_views'));
}
}
......@@ -24,7 +24,7 @@ class RevisionRelationships extends ViewTestBase {
protected function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('node_test_views'));
ViewTestData::createTestViews(get_class($this), array('node_test_views'));
}
/**
......
......@@ -50,7 +50,7 @@ public static function getInfo() {
protected function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('rest_test_views'));
ViewTestData::createTestViews(get_class($this), array('rest_test_views'));
$this->adminUser = $this->drupalCreateUser(array('administer views', 'administer entity_test content', 'access user profiles', 'view test entity'));
......
......@@ -57,7 +57,7 @@ public static function getInfo() {
protected function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('statistics_test_views'));
ViewTestData::createTestViews(get_class($this), array('statistics_test_views'));
// Create a new user for viewing nodes.
$this->webUser = $this->drupalCreateUser(array('access content'));
......
......@@ -45,7 +45,7 @@ public static function getInfo() {
protected function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('taxonomy_test_views'));
ViewTestData::createTestViews(get_class($this), array('taxonomy_test_views'));
}
/**
......
......@@ -48,7 +48,7 @@ function setUp() {
parent::setUp();
$this->mockStandardInstall();
ViewTestData::importTestViews(get_class($this), array('taxonomy_test_views'));
ViewTestData::createTestViews(get_class($this), array('taxonomy_test_views'));
$this->term1 = $this->createTerm();
$this->term2 = $this->createTerm();
......
......@@ -26,7 +26,7 @@ abstract class TrackerTestBase extends ViewTestBase {
protected function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('tracker_test_views'));
ViewTestData::createTestViews(get_class($this), array('tracker_test_views'));
$this->drupalCreateContentType(array('type' => 'page', 'name' => 'Basic page'));
......
......@@ -65,7 +65,7 @@ public static function getInfo() {
protected function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('user_test_views'));
ViewTestData::createTestViews(get_class($this), array('user_test_views'));
$this->enableViewsTestModule();
......
......@@ -39,7 +39,7 @@ abstract class UserTestBase extends ViewTestBase {
protected function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('user_test_views'));
ViewTestData::createTestViews(get_class($this), array('user_test_views'));
$this->users[] = $this->drupalCreateUser();
$this->users[] = user_load(1);
......
......@@ -46,7 +46,7 @@ abstract class UserUnitTestBase extends ViewUnitTestBase {
protected function setUp() {
parent::setUp();
ViewTestData::importTestViews(get_class($this), array('user_test_views'));
ViewTestData::createTestViews(get_class($this), array('user_test_views'));
$this->installSchema('user', array('users', 'users_roles'));
$this->installSchema('system', 'sequences');
......
......@@ -37,7 +37,7 @@ protected function setUp() {
$this->enableViewsTestModule();
ViewTestData::importTestViews(get_class($this), array('views_test_data'));
ViewTestData::createTestViews(get_class($this), array('views_test_data'));
$this->admin_user = $this->drupalCreateUser(array('access all views'));
$this->web_user = $this->drupalCreateUser();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment