Example #1
0
 /**
  * @return void
  */
 public function testDeleteRecordsOlderThen()
 {
     $timestamp = time();
     $this->resourceMock->expects($this->any())->method('deleteRecordsOlderThen')->with($timestamp);
     $this->collectionMock->deleteRecordsOlderThen($timestamp);
 }
Example #2
0
 /**
  * deleteRecordsOlderThen() test
  *
  * @magentoDataFixture Magento/Security/_files/password_reset_request_events.php
  */
 public function testDeleteRecordsOlderThen()
 {
     $startTime = strtotime('2016-01-20 13:00:13');
     $this->collectionModel->deleteRecordsOlderThen($startTime)->load();
     $this->assertGreaterThanOrEqual(1, $this->collectionModel->getSize());
 }