UpdateSemverCoreTestBase.php

Same filename in other branches
  1. 11.x core/modules/update/tests/src/Functional/UpdateSemverCoreTestBase.php

Namespace

Drupal\Tests\update\Functional

File

core/modules/update/tests/src/Functional/UpdateSemverCoreTestBase.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\update\Functional;


/**
 * Base class for Update manager semantic versioning tests of Drupal core.
 *
 * This wires up the protected data from UpdateSemverTestBase for Drupal core
 * with semantic version releases.
 */
class UpdateSemverCoreTestBase extends UpdateSemverTestBase {
    
    /**
     * {@inheritdoc}
     */
    protected $updateTableLocator = 'table.update';
    
    /**
     * {@inheritdoc}
     */
    protected $updateProject = 'drupal';
    
    /**
     * {@inheritdoc}
     */
    protected $projectTitle = 'Drupal';
    
    /**
     * {@inheritdoc}
     */
    protected function setProjectInstalledVersion($version) {
        $this->mockDefaultExtensionsInfo([
            'version' => $version,
        ]);
    }

}

Classes

Title Deprecated Summary
UpdateSemverCoreTestBase Base class for Update manager semantic versioning tests of Drupal core.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.