function DevelHookCommandTest::testInstallFile
A procedural hook in a .install file is found.
File
-
tests/
src/ Kernel/ DevelHookCommandTest.php, line 66
Class
- DevelHookCommandTest
- Tests the devel:hook command.
Namespace
Drupal\Tests\devel\KernelCode
public function testInstallFile() : void {
$this->container
->get('update.update_hook_registry')
->setInstalledVersion('system', 8000);
$tester = $this->runCommand([
'hook' => 'update_last_removed',
'implementation' => 'system',
]);
$this->assertStringContainsString('system.install:', $tester->getDisplay());
}