diff --git a/core/tests/Drupal/Tests/Core/Composer/ExtensionDependencyRequirementsTest.php b/core/tests/Drupal/Tests/Core/Composer/ExtensionDependencyRequirementsTest.php index 4dbb065..90921c2 100644 --- a/core/tests/Drupal/Tests/Core/Composer/ExtensionDependencyRequirementsTest.php +++ b/core/tests/Drupal/Tests/Core/Composer/ExtensionDependencyRequirementsTest.php @@ -31,12 +31,12 @@ public function providerBuildRequirements() { // REQUIREMENT_ERROR is 2. 'REQUIREMENT_ERROR' => [ 2, - FALSE, + TRUE, ], // REQUIREMENT_OK is 0. 'REQUIREMENT_OK' => [ 0, - TRUE, + FALSE, ], ]; } @@ -48,15 +48,15 @@ public function providerBuildRequirements() { * * @param int $expected_severity * One of the \REQUIREMENT_* constants. - * @param bool $is_installed - * TRUE if the extension was installed through Composer. + * @param bool $requires_installation + * TRUE if the extension needs to be installed through Composer. */ - public function testBuildRequirements($expected_severity, $is_installed) { + public function testBuildRequirements($expected_severity, $requires_installation) { $extension = $this->prophesize(Extension::class); $extension->getName()->willReturn('some_module'); $dependency_checker = $this->prophesize(ExtensionDependencyChecker::class); - $dependency_checker->requiresInstallation($extension->reveal())->willReturn($is_installed); + $dependency_checker->requiresInstallation($extension->reveal())->willReturn($requires_installation); $string_translation = $this->getMock(TranslationInterface::class);