Skip to content

Commit f6f5c7e

Browse files
author
Yuri Kovsher
committed
MAGETWO-34989: Implement getDefaultRedirect() method
1 parent a91723c commit f6f5c7e

File tree

1 file changed

+3
-2
lines changed
  • lib/internal/Magento/Framework/App/Test/Unit/View/Deployment

1 file changed

+3
-2
lines changed

lib/internal/Magento/Framework/App/Test/Unit/View/Deployment/VersionTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function getValueFromStorageDataProvider()
7171

7272
public function testGetValueDefaultModeSaving()
7373
{
74+
$time = time();
7475
$this->appState
7576
->expects($this->once())
7677
->method('getMode')
@@ -80,8 +81,8 @@ public function testGetValueDefaultModeSaving()
8081
->expects($this->once())
8182
->method('load')
8283
->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());
8586
$this->object->getValue(); // Ensure caching in memory
8687
}
8788
}

0 commit comments

Comments
 (0)