public function PreviewLinkAccessTest::previewAccessDeniedDataProvider in Preview Link 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/PreviewLinkAccessTest.php \Drupal\Tests\preview_link\Kernel\PreviewLinkAccessTest::previewAccessDeniedDataProvider()
- 2.0.x tests/src/Kernel/PreviewLinkAccessTest.php \Drupal\Tests\preview_link\Kernel\PreviewLinkAccessTest::previewAccessDeniedDataProvider()
Data provider for testPreviewAccess().
File
- tests/
src/ Kernel/ PreviewLinkAccessTest.php, line 55
Class
- PreviewLinkAccessTest
- Test preview link access.
Namespace
Drupal\Tests\preview_link\KernelCode
public function previewAccessDeniedDataProvider() {
return [
'empty token' => [
'node',
1,
'',
FALSE,
],
'invalid token' => [
'node',
1,
'invalid 123',
FALSE,
],
'invalid entity id' => [
'node',
99,
'correct-token',
FALSE,
],
];
}