public function LocalTaskDefaultTest::testActive in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php \Drupal\Tests\Core\Menu\LocalTaskDefaultTest::testActive()
- 9 core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php \Drupal\Tests\Core\Menu\LocalTaskDefaultTest::testActive()
@covers ::getActive @covers ::setActive
File
- core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskDefaultTest.php, line 246 - Contains \Drupal\Tests\Core\Menu\LocalTaskDefaultTest.
Class
- LocalTaskDefaultTest
- @coversDefaultClass \Drupal\Core\Menu\LocalTaskDefault @group Menu
Namespace
Drupal\Tests\Core\MenuCode
public function testActive() {
$this
->setupLocalTaskDefault();
$this
->assertFalse($this->localTaskBase
->getActive());
$this->localTaskBase
->setActive();
$this
->assertTrue($this->localTaskBase
->getActive());
}