20 $entityFactory = $this->createMock(\
Magento\Framework\Data\
Collection\EntityFactory::class);
21 $logger = $this->createMock(\Psr\Log\LoggerInterface::class);
22 $fetchStrategy = $this->createMock(\
Magento\Framework\Data\
Collection\Db\FetchStrategy\Query::class);
23 $eventManager = $this->createMock(\
Magento\Framework\
Event\Manager::class);
27 ->disableOriginalConstructor()
28 ->setMethods([
'getConnection'])
29 ->getMockForAbstractClass();
32 $this->collection = new \Magento\Reports\Model\ResourceModel\Report\Collection\AbstractCollection(
44 $this->assertFalse($this->collection->isSubTotals());
49 $this->collection->setIsSubTotals(
true);
50 $this->assertTrue($this->collection->isSubTotals());
52 $this->collection->setIsSubTotals(
false);
53 $this->assertFalse($this->collection->isSubTotals());
testIsSubtotalsGetDefault()