@@ -101,11 +101,13 @@ public function addValueSortToCollectionDataProvider()
101
101
'expectedJoinCondition ' => [
102
102
0 => [
103
103
'requisites ' => ['code_t1 ' => "table " ],
104
- 'condition ' => "e.entity_id=code_t1.entity_id AND code_t1.attribute_id='123' AND code_t1.store_id='0' " ,
104
+ 'condition ' => "e.entity_id=code_t1.entity_id AND code_t1.attribute_id='123' "
105
+ . " AND code_t1.store_id='0' " ,
105
106
],
106
107
1 => [
107
108
'requisites ' => ['code_t2 ' => "table " ],
108
- 'condition ' => "e.entity_id=code_t2.entity_id AND code_t2.attribute_id='123' AND code_t2.store_id='12' " ,
109
+ 'condition ' => "e.entity_id=code_t2.entity_id AND code_t2.attribute_id='123' "
110
+ . " AND code_t2.store_id='12' " ,
109
111
],
110
112
],
111
113
'expectedOrder ' => 'IF(code_t2.value_id > 0, code_t2.value, code_t1.value) ASC ' ,
@@ -116,11 +118,13 @@ public function addValueSortToCollectionDataProvider()
116
118
'expectedJoinCondition ' => [
117
119
0 => [
118
120
'requisites ' => ['code_t1 ' => "table " ],
119
- 'condition ' => "e.entity_id=code_t1.entity_id AND code_t1.attribute_id='123' AND code_t1.store_id='0' " ,
121
+ 'condition ' => "e.entity_id=code_t1.entity_id AND code_t1.attribute_id='123' "
122
+ . " AND code_t1.store_id='0' " ,
120
123
],
121
124
1 => [
122
125
'requisites ' => ['code_t2 ' => "table " ],
123
- 'condition ' => "e.entity_id=code_t2.entity_id AND code_t2.attribute_id='123' AND code_t2.store_id='12' " ,
126
+ 'condition ' => "e.entity_id=code_t2.entity_id AND code_t2.attribute_id='123' "
127
+ . " AND code_t2.store_id='12' " ,
124
128
],
125
129
],
126
130
'expectedOrder ' => 'IF(code_t2.value_id > 0, code_t2.value, code_t1.value) DESC ' ,
@@ -131,7 +135,8 @@ public function addValueSortToCollectionDataProvider()
131
135
'expectedJoinCondition ' => [
132
136
0 => [
133
137
'requisites ' => ['code_t ' => "table " ],
134
- 'condition ' => "e.entity_id=code_t.entity_id AND code_t.attribute_id='123' AND code_t.store_id='0' " ,
138
+ 'condition ' => "e.entity_id=code_t.entity_id AND code_t.attribute_id='123' "
139
+ . " AND code_t.store_id='0' " ,
135
140
],
136
141
],
137
142
'expectedOrder ' => 'code_t.value DESC ' ,
@@ -142,7 +147,8 @@ public function addValueSortToCollectionDataProvider()
142
147
'expectedJoinCondition ' => [
143
148
0 => [
144
149
'requisites ' => ['code_t ' => "table " ],
145
- 'condition ' => "e.entity_id=code_t.entity_id AND code_t.attribute_id='123' AND code_t.store_id='0' " ,
150
+ 'condition ' => "e.entity_id=code_t.entity_id AND code_t.attribute_id='123' "
151
+ . " AND code_t.store_id='0' " ,
146
152
],
147
153
],
148
154
'expectedOrder ' => 'code_t.value ASC ' ,
0 commit comments