protected function QueryGroupByTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Tests/QueryGroupByTest.php \Drupal\views\Tests\QueryGroupByTest::setUp()
Parameters
bool $import_test_views: Should the views specififed 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 ViewKernelTestBase::setUp
File
- core/
modules/ views/ src/ Tests/ QueryGroupByTest.php, line 47 - Contains \Drupal\views\Tests\QueryGroupByTest.
Class
- QueryGroupByTest
- Tests aggregate functionality of views, for example count.
Namespace
Drupal\views\TestsCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('user');
$this
->installEntitySchema('entity_test');
$this
->installEntitySchema('entity_test_mul');
$this->storage = $this->container
->get('entity.manager')
->getStorage('entity_test');
ConfigurableLanguage::createFromLangcode('it')
->save();
}