protected function BlockViewTest::setUp in Collapsiblock 3.x
Same name and namespace in other branches
- 4.x tests/src/Kernel/BlockViewTest.php \Drupal\Tests\collapsiblock\Kernel\BlockViewTest::setUp()
Overrides CollapsiblockKernelTestBase::setUp
File
- tests/
src/ Kernel/ BlockViewTest.php, line 31
Class
- BlockViewTest
- Tests viewing blocks with Collapsiblock enabled.
Namespace
Drupal\Tests\collapsiblock\KernelCode
protected function setUp() {
parent::setUp();
$this->blockStorage = $this->container
->get('entity_type.manager')
->getStorage('block');
$this->renderer = $this->container
->get('renderer');
}