Fix the surprisingly few broken tests

This commit is contained in:
Dane Everitt 2017-12-16 13:35:32 -06:00
parent 3c48947f9d
commit c6cece51ee
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
8 changed files with 43 additions and 66 deletions

View file

@ -48,7 +48,7 @@ class CleanServiceBackupFilesCommandTest extends CommandTestCase
$file = new SplFileInfo('testfile.txt');
$this->disk->shouldReceive('files')->with('services/.bak')->once()->andReturn([$file]);
$this->disk->shouldReceive('lastModified')->with($file->getPath())->once()->andReturn(Carbon::now()->subDays(100));
$this->disk->shouldReceive('lastModified')->with($file->getPath())->once()->andReturn(Carbon::now()->subDays(100)->getTimestamp());
$this->disk->shouldReceive('delete')->with($file->getPath())->once()->andReturnNull();
$display = $this->runCommand($this->getCommand());
@ -65,7 +65,7 @@ class CleanServiceBackupFilesCommandTest extends CommandTestCase
$file = new SplFileInfo('testfile.txt');
$this->disk->shouldReceive('files')->with('services/.bak')->once()->andReturn([$file]);
$this->disk->shouldReceive('lastModified')->with($file->getPath())->once()->andReturn(Carbon::now());
$this->disk->shouldReceive('lastModified')->with($file->getPath())->once()->andReturn(Carbon::now()->getTimestamp());
$display = $this->runCommand($this->getCommand());