protected function ViewsBlockTest::setUp in Zircon Profile 8
Same name in this branch
- 8 core/modules/views/src/Tests/Plugin/ViewsBlockTest.php \Drupal\views\Tests\Plugin\ViewsBlockTest::setUp()
- 8 core/modules/views/tests/src/Unit/Plugin/Block/ViewsBlockTest.php \Drupal\Tests\views\Unit\Plugin\Block\ViewsBlockTest::setUp()
Same name and namespace in other branches
- 8.0 core/modules/views/src/Tests/Plugin/ViewsBlockTest.php \Drupal\views\Tests\Plugin\ViewsBlockTest::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/ Plugin/ ViewsBlockTest.php, line 38 - Contains \Drupal\views\Tests\Plugin\ViewsBlockTest.
Class
- ViewsBlockTest
- Tests native behaviors of the block views plugin.
Namespace
Drupal\views\Tests\PluginCode
protected function setUp() {
parent::setUp();
ViewTestData::createTestViews(get_class($this), array(
'block_test_views',
));
}