File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Category/Collection Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,8 @@ class UrlRewriteTest extends \PHPUnit\Framework\TestCase
1515
1616 protected function setUp ()
1717 {
18- $ this ->_model = $ this ->getMockBuilder (
19- \Magento \Catalog \Model \ResourceModel \Category \Collection::class
20- )->disableOriginalConstructor ()
18+ $ this ->_model = $ this ->getMockBuilder (\Magento \Catalog \Model \ResourceModel \Category \Collection::class)
19+ ->disableOriginalConstructor ()
2120 ->setMethodsExcept (['joinUrlRewrite ' , 'setStoreId ' , 'getStoreId ' ])
2221 ->getMock ();
2322 }
@@ -26,14 +25,14 @@ public function testStoreIdUsedByUrlRewrite()
2625 {
2726 $ cond = '{{table}}.is_autogenerated = 1 AND {{table}}.store_id = 100 AND {{table}}.entity_type = \'category \'' ;
2827 $ this ->_model ->expects ($ this ->once ())
29- ->method ('joinTable ' )
30- ->with (
31- $ this ->anything (),
32- $ this ->anything (),
33- $ this ->anything (),
34- $ this ->equalTo ($ cond ),
35- $ this ->anything ()
36- );
28+ ->method ('joinTable ' )
29+ ->with (
30+ $ this ->anything (),
31+ $ this ->anything (),
32+ $ this ->anything (),
33+ $ this ->equalTo ($ cond ),
34+ $ this ->anything ()
35+ );
3736 $ this ->_model ->setStoreId (100 );
3837 $ this ->_model ->joinUrlRewrite ();
3938 }
You can’t perform that action at this time.
0 commit comments