You are here

public function UpdateManagerTest::testSemanticVersion in Lightning Core 8.2

Same name and namespace in other branches
  1. 8.5 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\UpdateManagerTest::testSemanticVersion()
  2. 8 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\UpdateManagerTest::testSemanticVersion()
  3. 8.3 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\UpdateManagerTest::testSemanticVersion()
  4. 8.4 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\UpdateManagerTest::testSemanticVersion()

@covers ::toSemanticVersion

@dataProvider providerSemanticVersion

File

tests/src/Unit/UpdateManagerTest.php, line 22

Class

UpdateManagerTest
@coversDefaultClass \Drupal\lightning_core\UpdateManager

Namespace

Drupal\Tests\lightning_core\Unit

Code

public function testSemanticVersion($drupal_version, $semantic_version) {
  $this
    ->assertSame($semantic_version, UpdateManager::toSemanticVersion($drupal_version));
}