File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/internal/Magento/Framework/Model/Test/Unit/Resource/Db Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -493,15 +493,15 @@ public function testPrepareDataForUpdate()
493
493
494
494
$ abstractModelMock ->setIdFieldName ('id ' );
495
495
$ abstractModelMock ->setData (
496
- array (
496
+ [
497
497
'id ' => 12345 ,
498
498
'name ' => 'Test Name ' ,
499
499
'value ' => 'Test Value '
500
- )
500
+ ]
501
501
);
502
502
$ abstractModelMock ->afterLoad ();
503
503
$ this ->assertEquals ($ abstractModelMock ->getData (), $ abstractModelMock ->getStoredData ());
504
- $ newData = array ( 'value ' => 'Test Value New ' ) ;
504
+ $ newData = [ 'value ' => 'Test Value New ' ] ;
505
505
$ this ->_model ->expects ($ this ->once ())->method ('_prepareDataForTable ' )->will ($ this ->returnValue ($ newData ));
506
506
$ abstractModelMock ->addData ($ newData );
507
507
$ this ->assertNotEquals ($ abstractModelMock ->getData (), $ abstractModelMock ->getStoredData ());
You can’t perform that action at this time.
0 commit comments