protected function ModerationInformationTest::getUser in Drupal 8
Same name and namespace in other branches
- 9 core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php \Drupal\Tests\content_moderation\Unit\ModerationInformationTest::getUser()
- 10 core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php \Drupal\Tests\content_moderation\Unit\ModerationInformationTest::getUser()
Builds a mock user.
Return value
\Drupal\Core\Session\AccountInterface The mocked user.
File
- core/
modules/ content_moderation/ tests/ src/ Unit/ ModerationInformationTest.php, line 29
Class
- ModerationInformationTest
- @coversDefaultClass \Drupal\content_moderation\ModerationInformation @group content_moderation
Namespace
Drupal\Tests\content_moderation\UnitCode
protected function getUser() {
return $this
->prophesize(AccountInterface::class)
->reveal();
}