File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
dev/tests/integration/testsuite/Magento/Catalog Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function getViewActionDataProvider()
25
25
return [
26
26
'category without children ' => [
27
27
'categoryId ' => 5 ,
28
- ['catalog_category_view_type_default ' , 'catalog_category_view_type_default_without_children ' ],
28
+ ['catalog_category_view_type_layered ' , 'catalog_category_view_type_layered_without_children ' ],
29
29
[
30
30
'%acategorypath-category-1-category-1-1-category-1-1-1%a ' ,
31
31
'%acategory-category-1-1-1%a ' ,
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ public function testGetLevel()
161
161
public function testGetAnchorsAbove ()
162
162
{
163
163
$ this ->_model ->load (4 );
164
- $ this ->assertEmpty ( $ this ->_model ->getAnchorsAbove ());
164
+ $ this ->assertContains ( 3 , $ this ->_model ->getAnchorsAbove ());
165
165
$ this ->_model ->load (5 );
166
166
$ this ->assertContains (4 , $ this ->_model ->getAnchorsAbove ());
167
167
}
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public function testReindexAll()
73
73
$ this ->assertTrue ((bool )$ this ->productResource ->canBeShowInCategory ($ product , $ categoryId ));
74
74
}
75
75
76
- $ this ->assertFalse (
76
+ $ this ->assertTrue (
77
77
(bool )$ this ->productResource ->canBeShowInCategory ($ product , $ categoryThird ->getParentId ())
78
78
);
79
79
}
@@ -187,12 +187,12 @@ public function testCategoryCreate()
187
187
$ productThird ->setCategoryIds ([$ categorySixth ->getId ()]);
188
188
$ productThird ->save ();
189
189
190
- $ categories = [self ::DEFAULT_ROOT_CATEGORY , $ categorySixth ->getId ()];
190
+ $ categories = [self ::DEFAULT_ROOT_CATEGORY , $ categorySixth ->getId (), $ categoryFifth -> getId () ];
191
191
foreach ($ categories as $ categoryId ) {
192
192
$ this ->assertTrue ((bool )$ this ->productResource ->canBeShowInCategory ($ productThird , $ categoryId ));
193
193
}
194
194
195
- $ categories = [$ categoryFifth -> getId (), $ categorySecond ->getId ()];
195
+ $ categories = [$ categorySecond ->getId ()];
196
196
foreach ($ categories as $ categoryId ) {
197
197
$ this ->assertFalse ((bool )$ this ->productResource ->canBeShowInCategory ($ productThird , $ categoryId ));
198
198
}
Original file line number Diff line number Diff line change @@ -109,6 +109,6 @@ public function testGetItems(\Magento\Catalog\Model\Layer\Filter\Category $model
109
109
$ this ->assertSame ($ modelApplied , $ item ->getFilter ());
110
110
$ this ->assertEquals ('Category 1.1 ' , $ item ->getLabel ());
111
111
$ this ->assertEquals (4 , $ item ->getValue ());
112
- $ this ->assertEquals (1 , $ item ->getCount ());
112
+ $ this ->assertEquals (2 , $ item ->getCount ());
113
113
}
114
114
}
You can’t perform that action at this time.
0 commit comments