public function LatestRevisionCheckTest::accessSituationProvider in Workbench Moderation 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/LatestRevisionCheckTest.php \Drupal\Tests\workbench_moderation\Unit\LatestRevisionCheckTest::accessSituationProvider()
Data provider for testLastAccessPermissions().
Return value
array Array with node access and block content access.
File
- tests/
src/ Unit/ LatestRevisionCheckTest.php, line 70
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,
],
];
}