protected function ProfileViewTest::setUp in Profile 8
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/ ProfileViewTest.php, line 34
Class
- ProfileViewTest
- Tests profile integration with Views.
Namespace
Drupal\Tests\profile\KernelCode
protected function setUp($import_test_views = TRUE) {
parent::setUp($import_test_views);
$this
->installEntitySchema('user');
$this
->installEntitySchema('profile');
$this
->installEntitySchema('profile_type');
ViewTestData::createTestViews(get_class($this), [
'profile_test',
]);
}