function DependentAccessTest::providerTestSetFirst

Same name and namespace in other branches
  1. 9 core/modules/block_content/tests/src/Unit/Access/DependentAccessTest.php \Drupal\Tests\block_content\Unit\Access\DependentAccessTest::providerTestSetFirst()
  2. 8.9.x core/modules/block_content/tests/src/Unit/Access/DependentAccessTest.php \Drupal\Tests\block_content\Unit\Access\DependentAccessTest::providerTestSetFirst()
  3. 10 core/modules/block_content/tests/src/Unit/Access/DependentAccessTest.php \Drupal\Tests\block_content\Unit\Access\DependentAccessTest::providerTestSetFirst()

Data provider for all test methods.

Provides test cases for calling setAccessDependency() or mergeAccessDependency() first. A call to either should behave the same on a new RefinableDependentAccessInterface object.

File

core/modules/block_content/tests/src/Unit/Access/DependentAccessTest.php, line 145

Class

DependentAccessTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21block_content%21src%21Access%21RefinableDependentAccessTrait.php/trait/RefinableDependentAccessTrait/11.x" title="Trait for \Drupal\block_content\Access\RefinableDependentAccessInterface." class="local">\Drupal\block_content\Access\RefinableDependentAccessTrait</a>

Namespace

Drupal\Tests\block_content\Unit\Access

Code

public static function providerTestSetFirst() {
    return [
        [
            TRUE,
        ],
        [
            FALSE,
        ],
    ];
}

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