@@ -49,7 +49,7 @@ public function checkConflictWhenEnableModuleDataProvider()
49
49
[['Vendor_A ' , ['Vendor_B ' => '0.1 ' ]], ['Vendor_B ' , []]],
50
50
['Vendor_A ' ],
51
51
['Vendor_B ' ],
52
- ['Vendor_B ' => ['Vendor_A conflicts with Vendor_B version 0.1 (current 0.1) ' ]]
52
+ ['Vendor_B ' => ['Vendor_A conflicts with current Vendor_B version 0.1 (version should not be 0.1) ' ]]
53
53
],
54
54
[
55
55
[['Vendor_A ' , ['Vendor_B ' => '0.1 ' ]], ['Vendor_B ' , []]],
@@ -61,7 +61,7 @@ public function checkConflictWhenEnableModuleDataProvider()
61
61
[['Vendor_B ' , ['Vendor_A ' => '0.1 ' ]], ['Vendor_A ' , []]],
62
62
['Vendor_A ' ],
63
63
['Vendor_B ' ],
64
- ['Vendor_B ' => ['Vendor_B conflicts with Vendor_A version 0.1 (current 0.1) ' ]]
64
+ ['Vendor_B ' => ['Vendor_B conflicts with current Vendor_A version 0.1 (version should not be 0.1) ' ]]
65
65
],
66
66
[
67
67
[['Vendor_B ' , ['Vendor_A ' => '0.1 ' ]], ['Vendor_A ' , []]],
@@ -85,28 +85,31 @@ public function checkConflictWhenEnableModuleDataProvider()
85
85
[['Vendor_A ' , ['Vendor_C ' => '0.1 ' ]], ['Vendor_B ' , []], ['Vendor_C ' , []]],
86
86
['Vendor_A ' ],
87
87
['Vendor_B ' , 'Vendor_C ' ],
88
- ['Vendor_B ' => [], 'Vendor_C ' => ['Vendor_A conflicts with Vendor_C version 0.1 (current 0.1) ' ]]
88
+ [
89
+ 'Vendor_B ' => [],
90
+ 'Vendor_C ' => ['Vendor_A conflicts with current Vendor_C version 0.1 (version should not be 0.1) ' ]
91
+ ]
89
92
],
90
93
[
91
94
[['Vendor_A ' , []], ['Vendor_B ' , ['Vendor_C ' => '0.1 ' ]], ['Vendor_C ' , []]],
92
95
['Vendor_A ' ],
93
96
['Vendor_B ' , 'Vendor_C ' ],
94
97
[
95
- 'Vendor_B ' => ['Vendor_B conflicts with Vendor_C version 0.1 (current 0.1) ' ],
96
- 'Vendor_C ' => ['Vendor_B conflicts with Vendor_C version 0.1 (current 0.1) ' ]
98
+ 'Vendor_B ' => ['Vendor_B conflicts with current Vendor_C version 0.1 (version should not be 0.1) ' ],
99
+ 'Vendor_C ' => ['Vendor_B conflicts with current Vendor_C version 0.1 (version should not be 0.1) ' ]
97
100
]
98
101
],
99
102
[
100
103
[['Vendor_A ' , ['Vendor_B ' => '>=0.1 ' ]], ['Vendor_B ' , []]],
101
104
['Vendor_A ' ],
102
105
['Vendor_B ' ],
103
- ['Vendor_B ' => ['Vendor_A conflicts with Vendor_B version >= 0.1 (current 0.1) ' ]]
106
+ ['Vendor_B ' => ['Vendor_A conflicts with current Vendor_B version 0.1 (version should not be >= 0.1) ' ]]
104
107
],
105
108
[
106
109
[['Vendor_A ' , ['Vendor_B ' => '~0.1 ' ]], ['Vendor_B ' , []]],
107
110
['Vendor_A ' ],
108
111
['Vendor_B ' ],
109
- ['Vendor_B ' => ['Vendor_A conflicts with Vendor_B version ~ 0.1 (current 0.1) ' ]]
112
+ ['Vendor_B ' => ['Vendor_A conflicts with current Vendor_B version 0.1 (version should not be ~ 0.1) ' ]]
110
113
],
111
114
];
112
115
}
@@ -134,7 +137,7 @@ public function testCheckConflictWhenEnableModuleDifferentVersion()
134
137
->will ($ this ->returnValue ($ packageInfoMock ));
135
138
$ conflictChecker = new ConflictChecker ($ moduleListMock , $ packageInfoFactoryMock );
136
139
$ this ->assertEquals (
137
- ['Vendor_C ' => ['Vendor_C conflicts with Vendor_A version >=0.2,<0.3 (current 0.2 ) ' ]],
140
+ ['Vendor_C ' => ['Vendor_C conflicts with current Vendor_A version 0.2 (version should not be >=0.2,<0.3) ' ]],
138
141
$ conflictChecker ->checkConflictsWhenEnableModules (['Vendor_C ' ])
139
142
);
140
143
}
0 commit comments