protected function FlagKernelTestBase::setUp in Flag 8.4
Overrides KernelTestBase::setUp
4 calls to FlagKernelTestBase::setUp()
- AccessTest::setUp in tests/
src/ Kernel/ AccessTest.php - FlagActionTest::setUp in tests/
src/ Kernel/ FlagActionTest.php - FlagCountsTest::setUp in tests/
src/ Kernel/ FlagCountsTest.php - FlaggingStorageTest::setUp in tests/
src/ Kernel/ FlaggingStorageTest.php
4 methods override FlagKernelTestBase::setUp()
- AccessTest::setUp in tests/
src/ Kernel/ AccessTest.php - FlagActionTest::setUp in tests/
src/ Kernel/ FlagActionTest.php - FlagCountsTest::setUp in tests/
src/ Kernel/ FlagCountsTest.php - FlaggingStorageTest::setUp in tests/
src/ Kernel/ FlaggingStorageTest.php
File
- tests/
src/ Kernel/ FlagKernelTestBase.php, line 43
Class
- FlagKernelTestBase
- Basic setup for kernel tests based around flaggings articles.
Namespace
Drupal\Tests\flag\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('user');
$this
->installEntitySchema('node');
$this
->installEntitySchema('flagging');
$this
->installSchema('system', [
'sequences',
]);
$this
->installSchema('flag', [
'flag_counts',
]);
$this
->installSchema('node', [
'node_access',
]);
$this
->installConfig([
'filter',
'flag',
'node',
]);
$this->flagService = \Drupal::service('flag');
}