function QuickEditEntityFieldAccessCheckTest::providerTestAccess

Same name in other branches
  1. 8.9.x 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 46

Class

QuickEditEntityFieldAccessCheckTest
@coversDefaultClass \Drupal\quickedit\Access\QuickEditEntityFieldAccessCheck @group Access @group quickedit @group legacy

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.