Skip to content
Snippets Groups Projects
Commit b1e707ad authored by Kunal Sachdev's avatar Kunal Sachdev Committed by Ted Bowman
Browse files

Issue #3291959 by kunal.sachdev, tedbow: Namespace and the function name in...

Issue #3291959 by kunal.sachdev, tedbow: Namespace and the function name in UpdateReleaseValidatorTest is wrong
parent da55f419
No related branches found
No related tags found
1 merge request!351Issue #3291959: Namespace and the function name in UpdateReleaseValidatorTest is wrong
......@@ -28,6 +28,19 @@ abstract class AutomaticUpdatesExtensionsKernelTestBase extends AutomaticUpdates
'automatic_updates_test_release_history',
];
/**
* {@inheritdoc}
*/
protected function setUp(): void {
// Disable the Composer executable validator, since it may cause the tests
// to fail if a supported version of Composer is unavailable to the web
// server. This should be okay in most situations because, apart from the
// validator, only Composer Stager needs run Composer, and
// package_manager_bypass is disabling those operations.
$this->disableValidators[] = 'package_manager.validator.composer_executable';
parent::setUp();
}
/**
* {@inheritdoc}
*/
......
<?php
namespace Drupal\Tests\automatic_updates_extensions\Kernel\Valdiator;
namespace Drupal\Tests\automatic_updates_extensions\Kernel\Validator;
use Drupal\automatic_updates\LegacyVersionUtility;
use Drupal\package_manager\Event\PreCreateEvent;
......@@ -20,6 +20,7 @@ class UpdateReleaseValidatorTest extends AutomaticUpdatesExtensionsKernelTestBas
protected function setUp(): void {
$this->disableValidators[] = 'automatic_updates_extensions.validator.packages_installed_with_composer';
parent::setUp();
$this->createTestProject();
}
/**
......@@ -58,7 +59,7 @@ class UpdateReleaseValidatorTest extends AutomaticUpdatesExtensionsKernelTestBas
$expected_results = [];
}
$this->assertUpdaterResults([$project => $target_version], $expected_results, PreCreateEvent::class);
$this->assertUpdateResults([$project => $target_version], $expected_results, PreCreateEvent::class);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment