public function ModerationInformationTest::testIsModeratedEntityFormWithNonContentEntityForm in Workbench Moderation 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/ModerationInformationTest.php \Drupal\Tests\workbench_moderation\Unit\ModerationInformationTest::testIsModeratedEntityFormWithNonContentEntityForm()
Test if moderated entity form is with non content entity form.
File
- tests/
src/ Unit/ ModerationInformationTest.php, line 142
Class
- ModerationInformationTest
- @coversDefaultClass \Drupal\workbench_moderation\ModerationInformation @group workbench_moderation
Namespace
Drupal\Tests\workbench_moderation\UnitCode
public function testIsModeratedEntityFormWithNonContentEntityForm() {
$form = $this
->prophesize(EntityFormInterface::class);
$moderation_information = new ModerationInformation($this
->setupModerationEntityManager(TRUE), $this
->getUser());
$this
->assertFalse($moderation_information
->isModeratedEntityForm($form
->reveal()));
}