@@ -33,17 +33,17 @@ public function testGetSelectCountSql()
33
33
->getConstructArguments ('Magento\Reports\Model\Resource\Quote\Collection ' );
34
34
$ collection = $ this ->getMock (
35
35
'Magento\Reports\Model\Resource\Quote\Collection ' ,
36
- ['prepareActiveCartItems ' , ' getSelect ' ],
36
+ ['getSelect ' ],
37
37
$ constructArgs ,
38
38
'' ,
39
39
false
40
40
);
41
41
42
- $ collection ->expects ($ this ->once ())->method ('prepareActiveCartItems ' )->willReturn ($ this ->selectMock );
42
+ $ collection ->expects ($ this ->once ())->method ('getSelect ' )->willReturn ($ this ->selectMock );
43
43
$ this ->selectMock ->expects ($ this ->atLeastOnce ())->method ('reset ' )->willReturnSelf ();
44
44
$ this ->selectMock ->expects ($ this ->once ())
45
45
->method ('columns ' )
46
- ->with ('COUNT(DISTINCT quote_items.product_id ) ' )
46
+ ->with ('COUNT(* ) ' )
47
47
->willReturnSelf ();
48
48
$ this ->assertEquals ($ this ->selectMock , $ collection ->getSelectCountSql ());
49
49
}
@@ -52,9 +52,9 @@ public function testPrepareActiveCartItems()
52
52
{
53
53
/** @var $collection \PHPUnit_Framework_MockObject_MockObject */
54
54
$ constructArgs = $ this ->objectManager
55
- ->getConstructArguments ('Magento\Reports\Model\Resource\Quote\Collection ' );
55
+ ->getConstructArguments ('Magento\Reports\Model\Resource\Quote\Item\ Collection ' );
56
56
$ collection = $ this ->getMock (
57
- 'Magento\Reports\Model\Resource\Quote\Collection ' ,
57
+ 'Magento\Reports\Model\Resource\Quote\Item\ Collection ' ,
58
58
['getSelect ' , 'getTable ' ],
59
59
$ constructArgs ,
60
60
'' ,
@@ -76,7 +76,7 @@ public function testLoadWithFilter()
76
76
{
77
77
/** @var $collection \PHPUnit_Framework_MockObject_MockObject */
78
78
$ constructArgs = $ this ->objectManager
79
- ->getConstructArguments ('Magento\Reports\Model\Resource\Quote\Collection ' );
79
+ ->getConstructArguments ('Magento\Reports\Model\Resource\Quote\Item\ Collection ' );
80
80
$ constructArgs ['eventManager ' ] = $ this ->getMock ('Magento\Framework\Event\ManagerInterface ' , [], [], '' , false );
81
81
$ readConnectionMock = $ this ->getMock ('Magento\Framework\DB\Adapter\AdapterInterface ' , [], [], '' , false );
82
82
$ resourceMock = $ this ->getMock ('\Magento\Quote\Model\Resource\Quote ' , [], [], '' , false );
@@ -87,7 +87,7 @@ public function testLoadWithFilter()
87
87
$ constructArgs ['orderResource ' ] = $ orderResourceMock ;
88
88
89
89
$ collection = $ this ->getMock (
90
- 'Magento\Reports\Model\Resource\Quote\Collection ' ,
90
+ 'Magento\Reports\Model\Resource\Quote\Item\ Collection ' ,
91
91
[
92
92
'_beforeLoad ' ,
93
93
'_renderFilters ' ,
0 commit comments