/**
  * @param string $result
  * @param string|null $lastLoginAt
  * @dataProvider getStoreLastLoginDateDataProvider
  * @return void
  */
 public function testGetStoreLastLoginDate($result, $lastLoginAt)
 {
     $this->customerLog->expects($this->once())->method('getLastLoginAt')->willReturn($lastLoginAt);
     $this->localeDate->expects($this->any())->method('scopeDate')->will($this->returnValue($lastLoginAt));
     $this->localeDate->expects($this->any())->method('formatDateTime')->willReturn($lastLoginAt);
     $this->assertEquals($result, $this->block->getStoreLastLoginDate());
 }
Beispiel #2
0
 /**
  * @return void
  */
 public function testGetLastLogoutAt()
 {
     $this->assertEquals($this->logData['last_logout_at'], $this->log->getLastLogoutAt());
 }