File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
lib/internal/Magento/Framework/App/Test/Unit/View/Deployment Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public function testGetValueDeveloperMode()
40
40
->method ('getMode ' )
41
41
->will ($ this ->returnValue (\Magento \Framework \App \State::MODE_DEVELOPER ));
42
42
$ this ->versionStorage ->expects ($ this ->never ())->method ($ this ->anything ());
43
- $ this ->assertEquals ( time () , $ this ->object ->getValue ());
43
+ $ this ->assertInternalType ( ' integer ' , $ this ->object ->getValue ());
44
44
$ this ->object ->getValue (); // Ensure computation occurs only once and result is cached in memory
45
45
}
46
46
@@ -71,7 +71,6 @@ public function getValueFromStorageDataProvider()
71
71
72
72
public function testGetValueDefaultModeSaving ()
73
73
{
74
- $ time = time ();
75
74
$ this ->appState
76
75
->expects ($ this ->once ())
77
76
->method ('getMode ' )
@@ -81,8 +80,8 @@ public function testGetValueDefaultModeSaving()
81
80
->expects ($ this ->once ())
82
81
->method ('load ' )
83
82
->will ($ this ->throwException ($ storageException ));
84
- $ this ->versionStorage ->expects ($ this ->once ())->method ('save ' )-> with ( $ time ) ;
85
- $ this ->assertEquals ( $ time , $ this ->object ->getValue ());
83
+ $ this ->versionStorage ->expects ($ this ->once ())->method ('save ' );
84
+ $ this ->assertInternalType ( ' integer ' , $ this ->object ->getValue ());
86
85
$ this ->object ->getValue (); // Ensure caching in memory
87
86
}
88
87
}
You can’t perform that action at this time.
0 commit comments