Skip to content

Commit 5f37661

Browse files
author
Ivan Gavryshko
committed
MAGETWO-52914: Setup UI Modifications
- fixed unittes
1 parent f3f70f1 commit 5f37661

File tree

1 file changed

+31
-13
lines changed

1 file changed

+31
-13
lines changed

setup/src/Magento/Setup/Test/Unit/Model/SystemPackageTest.php

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -115,23 +115,41 @@ public function testGetPackageVersions()
115115

116116
$expected = [
117117
[
118+
'id' => '1.2.0',
119+
'name' => 'Version 1.2.0 EE (latest)',
120+
'package' => 'magento/product-enterprise-edition',
121+
'stable' => true
122+
],
123+
[
124+
'id' => '1.2.0',
125+
'name' => 'Version 1.2.0 CE (latest)',
118126
'package' => 'magento/product-community-edition',
119-
'versions' =>
120-
[
121-
['id' => '1.2.0', 'name' => 'Version 1.2.0 CE (latest)'],
122-
['id' => '1.1.0', 'name' => 'Version 1.1.0 CE'],
123-
['id' => '1.0.0', 'name' => 'Version 1.0.0 CE (current)']
124-
]
127+
'stable' => true
125128
],
126129
[
130+
'id' => '1.1.0',
131+
'name' => 'Version 1.1.0 EE',
127132
'package' => 'magento/product-enterprise-edition',
128-
'versions' =>
129-
[
130-
['id' => '1.2.0', 'name' => 'Version 1.2.0 EE (latest)'],
131-
['id' => '1.1.0', 'name' => 'Version 1.1.0 EE'],
132-
['id' => '1.0.0', 'name' => 'Version 1.0.0 EE (current)']
133-
]
134-
]
133+
'stable' => true
134+
],
135+
[
136+
'id' => '1.1.0',
137+
'name' => 'Version 1.1.0 CE',
138+
'package' => 'magento/product-community-edition',
139+
'stable' => true
140+
],
141+
[
142+
'id' => '1.0.0',
143+
'name' => 'Version 1.0.0 EE (current)',
144+
'package' => 'magento/product-enterprise-edition',
145+
'stable' => true
146+
],
147+
[
148+
'id' => '1.0.0',
149+
'name' => 'Version 1.0.0 CE (current)',
150+
'package' => 'magento/product-community-edition',
151+
'stable' => true
152+
],
135153
];
136154

137155
$this->infoCommand->expects($this->at(0))

0 commit comments

Comments
 (0)