File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/internal/Magento/Framework/App/Test/Unit/View/Deployment Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ public function getValueFromStorageDataProvider()
71
71
72
72
public function testGetValueDefaultModeSaving ()
73
73
{
74
+ $ time = time ();
74
75
$ this ->appState
75
76
->expects ($ this ->once ())
76
77
->method ('getMode ' )
@@ -80,8 +81,8 @@ public function testGetValueDefaultModeSaving()
80
81
->expects ($ this ->once ())
81
82
->method ('load ' )
82
83
->will ($ this ->throwException ($ storageException ));
83
- $ this ->versionStorage ->expects ($ this ->once ())->method ('save ' )->with (time () );
84
- $ this ->assertEquals (time () , $ this ->object ->getValue ());
84
+ $ this ->versionStorage ->expects ($ this ->once ())->method ('save ' )->with ($ time );
85
+ $ this ->assertEquals ($ time , $ this ->object ->getValue ());
85
86
$ this ->object ->getValue (); // Ensure caching in memory
86
87
}
87
88
}
You can’t perform that action at this time.
0 commit comments