From b972c9a8e2261bc35d555c4dfea00135ad9a1b8a Mon Sep 17 00:00:00 2001 From: Andriy Nasinnyk <anasinnyk@ebay.com> Date: Tue, 31 Mar 2015 12:20:32 +0300 Subject: [PATCH] MAGETWO-35602: Failures in unit tests coverage builds - PersonalInfoTest::testGetCurrentStatus - fixed random test --- .../Framework/App/Test/Unit/View/Deployment/VersionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/Magento/Framework/App/Test/Unit/View/Deployment/VersionTest.php b/lib/internal/Magento/Framework/App/Test/Unit/View/Deployment/VersionTest.php index 897fb311e0a..a89986314b2 100644 --- a/lib/internal/Magento/Framework/App/Test/Unit/View/Deployment/VersionTest.php +++ b/lib/internal/Magento/Framework/App/Test/Unit/View/Deployment/VersionTest.php @@ -80,7 +80,7 @@ class VersionTest extends \PHPUnit_Framework_TestCase ->expects($this->once()) ->method('load') ->will($this->throwException($storageException)); - $this->versionStorage->expects($this->once())->method('save')->with(time()); + $this->versionStorage->expects($this->once())->method('save')->with($this->equalTo(time(), 5)); $this->assertEquals(time(), $this->object->getValue()); $this->object->getValue(); // Ensure caching in memory } -- GitLab