Skip to content

Commit 0a6bc65

Browse files
Merge branch 'MAGETWO-35602' into BUGS
2 parents be1e9fb + 9616562 commit 0a6bc65

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/code/Magento/Customer/Test/Unit/Block/Adminhtml/Edit/Tab/View/PersonalInfoTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,14 @@ public function testGetStoreLastLoginDateTimezone()
165165
*/
166166
public function testGetCurrentStatus($status, $lastLoginAt, $lastVisitAt, $lastLogoutAt)
167167
{
168+
$this->scopeConfig->expects($this->any())
169+
->method('getValue')
170+
->with(
171+
'customer/online_customers/online_minutes_interval',
172+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
173+
)
174+
->willReturn(60); //TODO: it's value mocked because unit tests run data providers before all testsuite
175+
168176
$this->customerLog->expects($this->any())->method('getLastLoginAt')->willReturn($lastLoginAt);
169177
$this->customerLog->expects($this->any())->method('getLastVisitAt')->willReturn($lastVisitAt);
170178
$this->customerLog->expects($this->any())->method('getLastLogoutAt')->willReturn($lastLogoutAt);

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

Lines changed: 1 addition & 1 deletion
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->assertEquals(time(), $this->object->getValue(), '', 5);
4444
$this->object->getValue(); // Ensure computation occurs only once and result is cached in memory
4545
}
4646

0 commit comments

Comments
 (0)