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
15
15
16
16
protected function setUp ()
17
17
{
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 ()
21
20
->setMethodsExcept (['joinUrlRewrite ' , 'setStoreId ' , 'getStoreId ' ])
22
21
->getMock ();
23
22
}
@@ -26,14 +25,14 @@ public function testStoreIdUsedByUrlRewrite()
26
25
{
27
26
$ cond = '{{table}}.is_autogenerated = 1 AND {{table}}.store_id = 100 AND {{table}}.entity_type = \'category \'' ;
28
27
$ 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
+ );
37
36
$ this ->_model ->setStoreId (100 );
38
37
$ this ->_model ->joinUrlRewrite ();
39
38
}
You can’t perform that action at this time.
0 commit comments