1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 00:20:08 +01:00

update tests to match renew command

This makes me a little sad, as it doesn't really test/document the behavior of the renew command.
This commit is contained in:
Austin Drummond
2023-12-20 00:45:51 -05:00
parent 39ee79dfad
commit 42f4f39994

View File

@@ -455,14 +455,7 @@ public function test_renew_command()
[$app, $tester] = $this->appAndTester();
$site = Mockery::mock(RealSite::class);
$site->shouldReceive('securedWithDates')->andReturn([
[
'site' => 'tighten.test',
'exp' => new DateTime('Aug 2 13:16:40 2023 GMT')
]
]);
$site->shouldReceive('domain')->with('tighten.test')->andReturn('tighten.test');
$site->shouldReceive('secure')->with('tighten.test', null, 368)->once();
$site->shouldReceive('renew')->andReturn();
swap(RealSite::class, $site);
$nginx = Mockery::mock(Nginx::class);
@@ -471,8 +464,6 @@ public function test_renew_command()
$tester->run(['command' => 'renew']);
$tester->assertCommandIsSuccessful();
$this->assertStringContainsString('tighten.test', $tester->getDisplay());
}
public function test_proxy_command()