public function LatestRevisionCheckTest::accessSituationProvider in Workbench Moderation 8.2
Same name and namespace in other branches
- 8 tests/src/Unit/LatestRevisionCheckTest.php \Drupal\Tests\workbench_moderation\Unit\LatestRevisionCheckTest::accessSituationProvider()
Data provider for testLastAccessPermissions().
Return value
array
File
- tests/
src/ Unit/ LatestRevisionCheckTest.php, line 71
Class
- LatestRevisionCheckTest
- @coversDefaultClass \Drupal\workbench_moderation\Access\LatestRevisionCheck @group workbench_moderation
Namespace
Drupal\Tests\workbench_moderation\UnitCode
public function accessSituationProvider() {
return [
[
Node::class,
'node',
TRUE,
AccessResultAllowed::class,
],
[
Node::class,
'node',
FALSE,
AccessResultForbidden::class,
],
[
BlockContent::class,
'block_content',
TRUE,
AccessResultAllowed::class,
],
[
BlockContent::class,
'block_content',
FALSE,
AccessResultForbidden::class,
],
];
}