Verified Commit 029901d2 authored by Alex Pott's avatar Alex Pott
Browse files

task: #3623380 (follow-up) Create OOP replacement for hook_install_tasks and...

task: #3623380 (follow-up) Create OOP replacement for hook_install_tasks and hook_install_tasks_alter
parent 3a7a75ab
Loading
Loading
Loading
Loading
Loading
+3
Changes for core/tests/Drupal/FunctionalTests/Installer/TaskAdditionAndAlterInstallerTest.php: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
namespace Drupal\FunctionalTests\Installer;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\IgnoreDeprecations;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
@@ -30,7 +31,9 @@ class TaskAdditionAndAlterInstallerTest extends InstallerTestBase {
   * Also confirms that if both exist the procedural implementations do not
   * run.
   */
  #[IgnoreDeprecations]
  public function testInstallTasks(): void {
    $this->expectUserDeprecationMessage('Code in testing_install_tasks_interface.profile is deprecated in drupal:11.5.0 and must be converted before drupal:13.0.0. Use classes instead. See https://www.drupal.org/node/3619765');
    $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'));