public function ModerationInformationTest::testIsModeratableBundle in Workbench Moderation 8.2
Same name and namespace in other branches
- 8 tests/src/Unit/ModerationInformationTest.php \Drupal\Tests\workbench_moderation\Unit\ModerationInformationTest::testIsModeratableBundle()
@dataProvider providerBoolean @covers ::isModeratableBundle
File
- tests/
src/ Unit/ ModerationInformationTest.php, line 93
Class
- ModerationInformationTest
- @coversDefaultClass \Drupal\workbench_moderation\ModerationInformation @group workbench_moderation
Namespace
Drupal\Tests\workbench_moderation\UnitCode
public function testIsModeratableBundle($status) {
$entity_type = new ContentEntityType([
'id' => 'test_entity_type',
'bundle_entity_type' => 'entity_test_bundle',
]);
$moderation_information = new ModerationInformation($this
->setupModerationEntityManager($status), $this
->getUser());
$this
->assertEquals($status, $moderation_information
->isModeratableBundle($entity_type, 'test_bundle'));
}