Skip to content

Commit aacdd70

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 0b303e1 commit aacdd70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,15 +493,15 @@ public function testPrepareDataForUpdate()
493493

494494
$abstractModelMock->setIdFieldName('id');
495495
$abstractModelMock->setData(
496-
array(
496+
[
497497
'id' => 12345,
498498
'name' => 'Test Name',
499499
'value' => 'Test Value'
500-
)
500+
]
501501
);
502502
$abstractModelMock->afterLoad();
503503
$this->assertEquals($abstractModelMock->getData(), $abstractModelMock->getStoredData());
504-
$newData = array ('value' => 'Test Value New');
504+
$newData = ['value' => 'Test Value New'];
505505
$this->_model->expects($this->once())->method('_prepareDataForTable')->will($this->returnValue($newData));
506506
$abstractModelMock->addData($newData);
507507
$this->assertNotEquals($abstractModelMock->getData(), $abstractModelMock->getStoredData());

0 commit comments

Comments
 (0)