You are here

protected function FlagActionTest::setUp in Flag 8.4

Same name in this branch
  1. 8.4 tests/src/Kernel/FlagActionTest.php \Drupal\Tests\flag\Kernel\FlagActionTest::setUp()
  2. 8.4 tests/src/Unit/Plugin/Action/FlagActionTest.php \Drupal\Tests\flag\Unit\Plugin\Action\FlagActionTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/Plugin/Action/FlagActionTest.php, line 33

Class

FlagActionTest
Unit tests for the flag action plugin.

Namespace

Drupal\Tests\flag\Unit\Plugin\Action

Code

protected function setUp() {
  parent::setUp();
  $flag = $this
    ->prophesize(FlagInterface::class);
  $flag
    ->id()
    ->willReturn(mb_strtolower($this
    ->randomMachineName()));
  $this->flag = $flag
    ->reveal();
}