function ViewsLocalTaskTest::testGetDerivativeDefinitionsWithoutHookMenuViews
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php \Drupal\Tests\views\Unit\Plugin\Derivative\ViewsLocalTaskTest::testGetDerivativeDefinitionsWithoutHookMenuViews()
- 10 core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php \Drupal\Tests\views\Unit\Plugin\Derivative\ViewsLocalTaskTest::testGetDerivativeDefinitionsWithoutHookMenuViews()
- 11.x core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php \Drupal\Tests\views\Unit\Plugin\Derivative\ViewsLocalTaskTest::testGetDerivativeDefinitionsWithoutHookMenuViews()
Tests fetching the derivatives on no view with hook menu.
See also
\Drupal\views\Plugin\Derivative\ViewsLocalTask::getDerivativeDefinitions()
File
-
core/
modules/ views/ tests/ src/ Unit/ Plugin/ Derivative/ ViewsLocalTaskTest.php, line 65
Class
- ViewsLocalTaskTest
- @coversDefaultClass <a href="/api/drupal/core%21modules%21views%21src%21Plugin%21Derivative%21ViewsLocalTask.php/class/ViewsLocalTask/8.9.x" title="Provides local task definitions for all views configured as local tasks." class="local">\Drupal\views\Plugin\Derivative\ViewsLocalTask</a> @group views
Namespace
Drupal\Tests\views\Unit\Plugin\DerivativeCode
public function testGetDerivativeDefinitionsWithoutHookMenuViews() {
$result = [];
$this->localTaskDerivative
->setApplicableMenuViews($result);
$definitions = $this->localTaskDerivative
->getDerivativeDefinitions($this->baseDefinition);
$this->assertEquals([], $definitions);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.