protected function ModerationInformationTest::getUser in Workbench Moderation 8.2
Same name and namespace in other branches
- 8 tests/src/Unit/ModerationInformationTest.php \Drupal\Tests\workbench_moderation\Unit\ModerationInformationTest::getUser()
Builds a mock user.
Return value
5 calls to ModerationInformationTest::getUser()
- ModerationInformationTest::testIsModeratableBundle in tests/
src/ Unit/ ModerationInformationTest.php - @dataProvider providerBoolean @covers ::isModeratableBundle
- ModerationInformationTest::testIsModeratableEntity in tests/
src/ Unit/ ModerationInformationTest.php - @dataProvider providerBoolean @covers ::isModeratableEntity
- ModerationInformationTest::testIsModeratableEntityForNonBundleEntityType in tests/
src/ Unit/ ModerationInformationTest.php - @covers ::isModeratableEntity
- ModerationInformationTest::testIsModeratedEntityForm in tests/
src/ Unit/ ModerationInformationTest.php - @dataProvider providerBoolean @covers ::isModeratedEntityForm
- ModerationInformationTest::testIsModeratedEntityFormWithNonContentEntityForm in tests/
src/ Unit/ ModerationInformationTest.php
File
- tests/
src/ Unit/ ModerationInformationTest.php, line 26
Class
- ModerationInformationTest
- @coversDefaultClass \Drupal\workbench_moderation\ModerationInformation @group workbench_moderation
Namespace
Drupal\Tests\workbench_moderation\UnitCode
protected function getUser() {
return $this
->prophesize(AccountInterface::class)
->reveal();
}