function ContactTest::testLocalTasksAlter
Same name in other branches
- 10 core/modules/contact/tests/src/Unit/ContactTest.php \Drupal\Tests\contact\Unit\ContactTest::testLocalTasksAlter()
Test contact_menu_local_tasks_alter doesn't throw warnings.
File
-
core/
modules/ contact/ tests/ src/ Unit/ ContactTest.php, line 18
Class
- ContactTest
- @group contact
Namespace
Drupal\Tests\contact\UnitCode
public function testLocalTasksAlter() : void {
require_once $this->root . '/core/modules/contact/contact.module';
$data = [];
$contactMenuLocalTasksAlter = new ContactHooks();
$contactMenuLocalTasksAlter->menuLocalTasksAlter($data, 'entity.user.canonical');
$this->assertTrue(TRUE, 'No warning thrown');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.