Skip to content

Commit 3601722

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

File tree

1 file changed

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

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testGetValueDeveloperMode()
4040
->method('getMode')
4141
->will($this->returnValue(\Magento\Framework\App\State::MODE_DEVELOPER));
4242
$this->versionStorage->expects($this->never())->method($this->anything());
43-
$this->assertEquals(time(), $this->object->getValue());
43+
$this->assertInternalType('integer', $this->object->getValue());
4444
$this->object->getValue(); // Ensure computation occurs only once and result is cached in memory
4545
}
4646

@@ -71,7 +71,6 @@ public function getValueFromStorageDataProvider()
7171

7272
public function testGetValueDefaultModeSaving()
7373
{
74-
$time = time();
7574
$this->appState
7675
->expects($this->once())
7776
->method('getMode')
@@ -81,8 +80,8 @@ public function testGetValueDefaultModeSaving()
8180
->expects($this->once())
8281
->method('load')
8382
->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());
8685
$this->object->getValue(); // Ensure caching in memory
8786
}
8887
}

0 commit comments

Comments
 (0)