You are here

protected function ModerationInformationTest::getUser in Workbench Moderation 8.2

Same name and namespace in other branches
  1. 8 tests/src/Unit/ModerationInformationTest.php \Drupal\Tests\workbench_moderation\Unit\ModerationInformationTest::getUser()

Builds a mock user.

Return value

AccountInterface

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\Unit

Code

protected function getUser() {
  return $this
    ->prophesize(AccountInterface::class)
    ->reveal();
}