function TaskAdditionAndAlterInstallerTest::testInstallTasks
Tests TaskInterface implementations.
Also confirms that if both exist the procedural implementations do not run.
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ TaskAdditionAndAlterInstallerTest.php, line 33
Class
- TaskAdditionAndAlterInstallerTest
- Tests the installer calling OOP Tasks and Alters.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testInstallTasks() : void {
$this->assertSame('ran', \Drupal::keyValue('testing_install_tasks_interface')->get('task', 'skipped'));
$this->assertSame('ran', \Drupal::keyValue('testing_install_tasks_interface')->get('alter', 'skipped'));
$this->assertNull(\Drupal::keyValue('testing_install_tasks_interface')->get('procedural_task'));
$this->assertNull(\Drupal::keyValue('testing_install_tasks_interface')->get('procedural_alter'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.