38 $objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
39 $this->quoteMock = $this->createPartialMock(\
Magento\Framework\DB\Platform\Quote::class, [
'quoteIdentifier']);
40 $this->selectMock = $this->createPartialMock(\
Magento\Framework\DB\Select::class, [
'getPart']);
43 [
'quote' => $this->quoteMock]
54 $this->selectMock->expects($this->any())
56 ->willReturnMap($mapValues);
57 $this->assertEquals($sql, $this->model->render($this->selectMock, $sql));
81 $this->selectMock->expects($this->exactly(3))
83 ->willReturnMap($mapValues);
84 $this->quoteMock->expects($this->exactly(2))
85 ->method(
'quoteIdentifier')
86 ->willReturnArgument(0);
87 $this->assertEquals($expectedResult, $this->model->render($this->selectMock, $sql));
renderNoPartDataProvider()
testRenderNoPart($mapValues)