protected function FlagActionTest::setUp in Flag 8.4
Same name in this branch
- 8.4 tests/src/Kernel/FlagActionTest.php \Drupal\Tests\flag\Kernel\FlagActionTest::setUp()
- 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\ActionCode
protected function setUp() {
parent::setUp();
$flag = $this
->prophesize(FlagInterface::class);
$flag
->id()
->willReturn(mb_strtolower($this
->randomMachineName()));
$this->flag = $flag
->reveal();
}