Skip to content

Commit 0b303e1

Browse files
author
Maksym Savich
committed
MAGETWO-35462: Refactor \Magento\Framework\Model\Resource\Db\AbstractDb only update changed fields
- Failed static test fix
1 parent f06ef5f commit 0b303e1

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

lib/internal/Magento/Framework/Model/Test/Unit/Resource/Db/AbstractDbTest.php

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -456,23 +456,11 @@ public function testPrepareDataForUpdate()
456456
'',
457457
false
458458
);
459-
$adapterMock = $this->getMock(
460-
'Magento\Framework\DB\Adapter\AdapterInterface',
461-
[],
462-
[],
463-
'',
464-
false
465-
);
459+
$adapterMock = $this->getMock('Magento\Framework\DB\Adapter\AdapterInterface', [], [], '', false);
466460
$resourceMock->expects($this->any())
467461
->method('_getWriteAdapter')
468462
->will($this->returnValue($adapterMock));
469-
$resourceCollectionMock = $this->getMock(
470-
'Magento\Framework\Data\Collection\Db',
471-
[],
472-
[],
473-
'',
474-
false
475-
);
463+
$resourceCollectionMock = $this->getMock('Magento\Framework\Data\Collection\Db', [], [], '', false);
476464
$abstractModelMock = $this->getMockForAbstractClass(
477465
'Magento\Framework\Model\AbstractModel',
478466
[$contextMock, $registryMock, $resourceMock, $resourceCollectionMock]

0 commit comments

Comments
 (0)