File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
app/code/Magento/Reports/Test/Unit/Block/Product
dev/tests/integration/testsuite/Magento/Reports/Model/ResourceModel/Product/Lowstock Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,12 @@ protected function setUp()
27
27
$ contextMock = $ this ->getMockBuilder (\Magento \Catalog \Block \Product \Context::class)
28
28
->disableOriginalConstructor ()
29
29
->getMock ();
30
+
30
31
$ visibilityMock = $ this ->getMockBuilder (\Magento \Catalog \Model \Product \Visibility::class)
31
32
->disableOriginalConstructor ()
32
33
->getMock ();
33
- $ this ->factoryMock = $ this ->getMockBuilder (\Magento \Reports \Model \Product \Index \Factory::class)
34
+
35
+ $ this ->factoryMock = $ this ->getMockBuilder (Factory::class)
34
36
->disableOriginalConstructor ()
35
37
->setMethods (['get ' ])
36
38
->getMock ();
@@ -56,8 +58,8 @@ public function testGetModelException()
56
58
public function testGetModel ()
57
59
{
58
60
$ indexMock = $ this ->getMockBuilder (\Magento \Reports \Model \Product \Index \AbstractIndex::class)
59
- ->disableOriginalConstructor ()
60
- ->getMock ();
61
+ ->disableOriginalConstructor ()
62
+ ->getMock ();
61
63
62
64
$ this ->factoryMock ->expects ($ this ->once ())->method ('get ' )->willReturn ($ indexMock );
63
65
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function testFilterByProductTypeException()
43
43
public function testFilterByProductTypeString ()
44
44
{
45
45
$ this ->collection ->filterByProductType ('simple ' );
46
- $ whereParts = $ this ->collection ->getSelect ()->getPart (\Zend_Db_Select ::WHERE );
46
+ $ whereParts = $ this ->collection ->getSelect ()->getPart (\Magento \ Framework \ DB \Select ::WHERE );
47
47
$ this ->assertContains ('simple ' , $ whereParts [0 ]);
48
48
}
49
49
@@ -55,7 +55,7 @@ public function testFilterByProductTypeString()
55
55
public function testFilterByProductTypeArray ()
56
56
{
57
57
$ this ->collection ->filterByProductType (['simple ' , 'configurable ' ]);
58
- $ whereParts = $ this ->collection ->getSelect ()->getPart (\Zend_Db_Select ::WHERE );
58
+ $ whereParts = $ this ->collection ->getSelect ()->getPart (\Magento \ Framework \ DB \Select ::WHERE );
59
59
60
60
$ this ->assertThat (
61
61
$ whereParts [0 ],
You can’t perform that action at this time.
0 commit comments