Skip to content

Commit 42eb362

Browse files
committed
Add an extra test for legacy versions.
1 parent 45e1845 commit 42eb362

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/Url/DrupalGeneratorTest.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function releaseUrlProvider()
1010
{
1111
return array(
1212
'contrib-legacy-version' => array(
13-
$this->getPackageWithSource('drupal/token', '8.x-1.0', 'https://git.drupalcode.org/project/token.git', '8.x-1.0'),
13+
$this->getPackageWithSource('drupal/token', '1.0.0', 'https://git.drupalcode.org/project/token.git', '8.x-1.0'),
1414
'https://www.drupal.org/project/token/releases/8.x-1.0',
1515
),
1616
'contrib-semver-version' => array(
@@ -62,10 +62,15 @@ public function compareUrlProvider()
6262
{
6363
return array(
6464
'semver' => array(
65-
$this->getPackageWithSourceAndDist('drupal/webform', '6.0.0', '6.0.0', 'https://git.drupalcode.org/project/webform.git'),
66-
$this->getPackageWithSourceAndDist('drupal/webform', '6.0.1', '6.0.1', 'https://git.drupalcode.org/project/webform.git'),
65+
$this->getPackageWithSourceAndDist('drupal/webform', '6.0.0', '6.0.0', 'https://git.drupalcode.org/project/webform.git'),
66+
$this->getPackageWithSourceAndDist('drupal/webform', '6.0.1', '6.0.1', 'https://git.drupalcode.org/project/webform.git'),
6767
'https://git.drupalcode.org/project/webform/compare/6.0.0...6.0.1',
6868
),
69+
'legacy-version' => array(
70+
$this->getPackageWithSourceAndDist('drupal/color_field', '2.4.0', '8.x-2.4', 'https://git.drupalcode.org/project/color_field.git'),
71+
$this->getPackageWithSourceAndDist('drupal/color_field', '2.5.0', '8.x-2.5', 'https://git.drupalcode.org/project/color_field.git'),
72+
'https://git.drupalcode.org/project/color_field/compare/8.x-2.4...8.x-2.5',
73+
),
6974
);
7075
}
7176

0 commit comments

Comments
 (0)