
| Current Path : /var/www/html/store1/web/core/modules/update/tests/src/Functional/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store1/web/core/modules/update/tests/src/Functional/UpdateSemverContribTest.php |
<?php
namespace Drupal\Tests\update\Functional;
/**
* Tests the Update Manager module with a contrib module with semver versions.
*
* @group update
*/
class UpdateSemverContribTest extends UpdateSemverTestBase {
/**
* {@inheritdoc}
*/
protected $updateTableLocator = 'table.update:nth-of-type(2)';
/**
* {@inheritdoc}
*/
protected $updateProject = 'semver_test';
/**
* {@inheritdoc}
*/
protected $projectTitle = 'Semver Test';
/**
* {@inheritdoc}
*/
protected static $modules = ['semver_test'];
/**
* {@inheritdoc}
*/
protected function setProjectInstalledVersion($version) {
$system_info = [
$this->updateProject => [
'project' => $this->updateProject,
'version' => $version,
'hidden' => FALSE,
],
// Ensure Drupal core on the same version for all test runs.
'drupal' => [
'project' => 'drupal',
'version' => '8.0.0',
'hidden' => FALSE,
],
];
$this->config('update_test.settings')->set('system_info', $system_info)->save();
}
}