You are here

public function EditEntityFieldAccessCheckTest::providerTestAccess in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/quickedit/tests/src/Unit/Access/EditEntityFieldAccessCheckTest.php \Drupal\Tests\quickedit\Unit\Access\EditEntityFieldAccessCheckTest::providerTestAccess()

Provides test data for testAccess().

See also

\Drupal\Tests\edit\Unit\quickedit\Access\EditEntityFieldAccessCheckTest::testAccess()

File

core/modules/quickedit/tests/src/Unit/Access/EditEntityFieldAccessCheckTest.php, line 50
Contains \Drupal\Tests\quickedit\Unit\Access\EditEntityFieldAccessCheckTest.

Class

EditEntityFieldAccessCheckTest
@coversDefaultClass \Drupal\quickedit\Access\EditEntityFieldAccessCheck @group Access @group quickedit

Namespace

Drupal\Tests\quickedit\Unit\Access

Code

public function providerTestAccess() {
  $data = array();
  $data[] = array(
    TRUE,
    TRUE,
    AccessResult::allowed(),
  );
  $data[] = array(
    FALSE,
    TRUE,
    AccessResult::neutral(),
  );
  $data[] = array(
    TRUE,
    FALSE,
    AccessResult::neutral(),
  );
  $data[] = array(
    FALSE,
    FALSE,
    AccessResult::neutral(),
  );
  return $data;
}