public function FieldBlockTest::providerTestBlockAccessNotAllowed in Drupal 9
Same name and namespace in other branches
- 8 core/modules/layout_builder/tests/src/Kernel/FieldBlockTest.php \Drupal\Tests\layout_builder\Kernel\FieldBlockTest::providerTestBlockAccessNotAllowed()
Provides test data for ::testBlockAccessEntityNotAllowed().
File
- core/
modules/ layout_builder/ tests/ src/ Kernel/ FieldBlockTest.php, line 78
Class
- FieldBlockTest
- @coversDefaultClass \Drupal\layout_builder\Plugin\Block\FieldBlock @group Field
Namespace
Drupal\Tests\layout_builder\KernelCode
public function providerTestBlockAccessNotAllowed() {
$data = [];
$data['entity_forbidden'] = [
FALSE,
AccessResult::forbidden(),
];
$data['entity_neutral'] = [
FALSE,
AccessResult::neutral(),
];
return $data;
}