function EntityTest::testCalculateDependenciesWithPlaceholder

Same name in other branches
  1. 9 core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php \Drupal\Tests\views\Unit\Plugin\area\EntityTest::testCalculateDependenciesWithPlaceholder()
  2. 8.9.x core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php \Drupal\Tests\views\Unit\Plugin\area\EntityTest::testCalculateDependenciesWithPlaceholder()
  3. 11.x core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php \Drupal\Tests\views\Unit\Plugin\area\EntityTest::testCalculateDependenciesWithPlaceholder()

@covers ::calculateDependencies

@dataProvider providerTestTokens

File

core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php, line 268

Class

EntityTest
@coversDefaultClass \Drupal\views\Plugin\views\area\Entity @group Entity

Namespace

Drupal\Tests\views\Unit\Plugin\area

Code

public function testCalculateDependenciesWithPlaceholder($token, $id) : void {
    $this->setupEntityTypeManager();
    $options = [
        'target' => $token,
    ];
    $this->entityHandler
        ->init($this->executable, $this->display, $options);
    $this->assertEquals([], $this->entityHandler
        ->calculateDependencies());
}

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