class UpdateSemverContribTest
Tests the Update Manager module with a contrib module with semver versions.
@group update
Hierarchy
- class \Drupal\Tests\BrowserTestBase uses \Drupal\Core\Test\FunctionalTestSetupTrait, \Drupal\Tests\UiHelperTrait, \Drupal\Core\Test\TestSetupTrait, \Drupal\Tests\block\Traits\BlockCreationTrait, \Drupal\FunctionalTests\AssertLegacyTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\node\Traits\NodeCreationTrait, \Drupal\Tests\node\Traits\ContentTypeCreationTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\user\Traits\UserCreationTrait, \Drupal\Tests\XdebugRequestTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, \Drupal\Tests\ExtensionListTestTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\update\Functional\UpdateTestBase extends \Drupal\Tests\BrowserTestBase
- class \Drupal\Tests\update\Functional\UpdateSemverTestBase uses \Drupal\Tests\Traits\Core\CronRunTrait extends \Drupal\Tests\update\Functional\UpdateTestBase
- class \Drupal\Tests\update\Functional\UpdateSemverContribTest extends \Drupal\Tests\update\Functional\UpdateSemverTestBase
- class \Drupal\Tests\update\Functional\UpdateSemverTestBase uses \Drupal\Tests\Traits\Core\CronRunTrait extends \Drupal\Tests\update\Functional\UpdateTestBase
- class \Drupal\Tests\update\Functional\UpdateTestBase extends \Drupal\Tests\BrowserTestBase
Expanded class hierarchy of UpdateSemverContribTest
File
-
core/
modules/ update/ tests/ src/ Functional/ UpdateSemverContribTest.php, line 10
Namespace
Drupal\Tests\update\FunctionalView source
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();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.