You are here

public function ModerationInformationTest::testIsModeratedEntityFormWithNonContentEntityForm 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::testIsModeratedEntityFormWithNonContentEntityForm()

File

tests/src/Unit/ModerationInformationTest.php, line 126

Class

ModerationInformationTest
@coversDefaultClass \Drupal\workbench_moderation\ModerationInformation @group workbench_moderation

Namespace

Drupal\Tests\workbench_moderation\Unit

Code

public function testIsModeratedEntityFormWithNonContentEntityForm() {
  $form = $this
    ->prophesize(EntityFormInterface::class);
  $moderation_information = new ModerationInformation($this
    ->setupModerationEntityManager(TRUE), $this
    ->getUser());
  $this
    ->assertFalse($moderation_information
    ->isModeratedEntityForm($form
    ->reveal()));
}