use Drupal\KernelTests\KernelTestBase;
use Drupal\views\Tests\ViewResultAssertionTrait;
use Drupal\views\Tests\ViewTestData;
+use Drupal\views\ViewsData;
/**
* Defines a base class for Views kernel testing.
ViewTestData::createTestViews(get_class($this), ['views_test_config']);
}
}
+
/**
* Sets up the configuration and schema of views and views_test_data modules.
*
// Define the schema and views data variable before enabling the test module.
$state->set('views_test_data_schema', $this->schemaDefinition());
$state->set('views_test_data_views_data', $this->viewsData());
+ $this->container->get('views.views_data')->clear();
$this->installConfig(['views', 'views_test_config', 'views_test_data']);
foreach ($this->schemaDefinition() as $table => $schema) {