Skip to content
Snippets Groups Projects

Issue #3342218: Fix tests after breaking change in Automatic Updates

Merged Tim Plunkett requested to merge issue/project_browser-3342218:3342218-fix-tests into 1.0.x
Files
3
@@ -5,7 +5,7 @@ namespace Drupal\Tests\project_browser\Kernel;
use Drupal\package_manager\Event\PreApplyEvent;
use Drupal\package_manager\Exception\StageException;
use Drupal\package_manager\ValidationResult;
use Drupal\package_manager_bypass\Committer;
use Drupal\package_manager_bypass\LoggingCommitter;
use Drupal\package_manager_test_validation\EventSubscriber\TestSubscriber;
use Drupal\project_browser\Exception\InstallException;
use Drupal\Tests\package_manager\Kernel\PackageManagerKernelTestBase;
@@ -77,7 +77,7 @@ class InstallerTest extends PackageManagerKernelTestBase {
$installer->create();
$installer->require(['org/package-name']);
$thrown_message = 'A very bad thing happened';
Committer::setException(new $thrown_class($thrown_message, 123));
LoggingCommitter::setException(new $thrown_class($thrown_message, 123));
$this->expectException($expected_class);
$expected_message = $expected_class === InstallException::class ?
'The install operation failed to apply. The install may have been partially applied. It is recommended that the site be restored from a code backup.'
Loading