Skip to content
Snippets Groups Projects

Issue #3243405: Add a kernel test of UpdateVersionValidator

Merged Issue #3243405: Add a kernel test of UpdateVersionValidator
4 unresolved threads
4 unresolved threads
@@ -31,7 +31,7 @@ class UpdateVersionValidatorTest extends AutomaticUpdatesKernelTestBase {
* Tests that an error is raised if there are major updates.
*/
public function testMajorUpdates(): void {
$this->setCoreVersion('8.0.0');
$this->setCoreVersion('8.9.1');
$result = ValidationResult::createError(['Updating from one major version to another is not supported.']);
$this->assertCheckerResultsFromManager([$result], TRUE);
@@ -41,7 +41,7 @@ class UpdateVersionValidatorTest extends AutomaticUpdatesKernelTestBase {
* Tests that an error is raised if there are minor updates.
*/
public function testMinorUpdates(): void {
$this->setCoreVersion('9.3.0');
$this->setCoreVersion('9.7.1');
$result = ValidationResult::createError(['Updating from one minor version to another is not supported.']);
$this->assertCheckerResultsFromManager([$result], TRUE);
}
Loading