You are here

protected function FlaggingStorageTest::setUp in Flag 8.4

Overrides FlagKernelTestBase::setUp

File

tests/src/Kernel/FlaggingStorageTest.php, line 42

Class

FlaggingStorageTest
Tests for flagging storage.

Namespace

Drupal\Tests\flag\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->account = $this
    ->createUser();
  $this->flag = $this
    ->createFlag('node', [
    'article',
  ]);

  // A node to test with.
  $this
    ->createContentType([
    'type' => 'article',
  ]);
  $this->node = $this
    ->createNode([
    'type' => 'article',
  ]);
}