You are here

public function QuickEditEntityFieldAccessCheckTest::providerTestAccess in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/quickedit/tests/src/Unit/Access/QuickEditEntityFieldAccessCheckTest.php \Drupal\Tests\quickedit\Unit\Access\QuickEditEntityFieldAccessCheckTest::providerTestAccess()
  2. 10 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\Access

Code

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;
}