protected function BasicTest::setUp in Views Natural Sort 8.2
Parameters
bool $import_test_views: Should the views specified on the test class be imported. If you need to setup some additional stuff, like fields, you need to call false and then call createTestViews for your own.
Overrides ViewsKernelTestBase::setUp
File
- tests/
src/ Kernel/ BasicTest.php, line 30
Class
- BasicTest
- @group views_natural_sort
Namespace
Drupal\Tests\views_natural_sort\KernelCode
protected function setUp($import_test_views = TRUE) : void {
parent::setUp($import_test_views);
$this
->installEntitySchema('node');
$this
->installEntitySchema('user');
$this
->installEntitySchema('comment');
$this
->installSchema('views_natural_sort', 'views_natural_sort');
$this
->installConfig([
'node',
'user',
'comment',
'field',
'views_natural_sort',
]);
ViewTestData::createTestViews(get_class($this), [
'views_natural_sort_test',
]);
}