You are here

public function FieldAccessCheckTest::providerTestAccess in FileField Sources 8

Provides test data for testAccess().

Only will return true only if the field is editable.

See also

\Drupal\Tests\filefield_sources\Unit\FieldAccessCheckTest::testAccess()

File

tests/src/Unit/FieldAccessCheckTest.php, line 54

Class

FieldAccessCheckTest
@coversDefaultClass \Drupal\filefield_sources\Access\FieldAccessCheck @group Access

Namespace

Drupal\Tests\filefield_sources\Unit

Code

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