public function QuickEditEntityFieldAccessCheckTest::providerTestAccess in Drupal 10
Same name and namespace in other branches
- 8 core/modules/quickedit/tests/src/Unit/Access/QuickEditEntityFieldAccessCheckTest.php \Drupal\Tests\quickedit\Unit\Access\QuickEditEntityFieldAccessCheckTest::providerTestAccess()
- 9 core/modules/quickedit/tests/src/Unit/Access/QuickEditEntityFieldAccessCheckTest.php \Drupal\Tests\quickedit\Unit\Access\QuickEditEntityFieldAccessCheckTest::providerTestAccess()
Provides test data for testAccess().
See also
\Drupal\Tests\edit\Unit\quickedit\Access\QuickEditEntityFieldAccessCheckTest::testAccess()
File
- core/
modules/ quickedit/ tests/ src/ Unit/ Access/ QuickEditEntityFieldAccessCheckTest.php, line 45
Class
- QuickEditEntityFieldAccessCheckTest
- @coversDefaultClass \Drupal\quickedit\Access\QuickEditEntityFieldAccessCheck @group Access @group quickedit
Namespace
Drupal\Tests\quickedit\Unit\AccessCode
public function providerTestAccess() {
$data = [];
$data[] = [
TRUE,
TRUE,
AccessResult::allowed(),
];
$data[] = [
FALSE,
TRUE,
AccessResult::neutral(),
];
$data[] = [
TRUE,
FALSE,
AccessResult::neutral(),
];
$data[] = [
FALSE,
FALSE,
AccessResult::neutral(),
];
return $data;
}