Skip to content

Commit 42f4f39

Browse files
committed
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.
1 parent 39ee79d commit 42f4f39

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

tests/CliTest.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -455,14 +455,7 @@ public function test_renew_command()
455455
[$app, $tester] = $this->appAndTester();
456456

457457
$site = Mockery::mock(RealSite::class);
458-
$site->shouldReceive('securedWithDates')->andReturn([
459-
[
460-
'site' => 'tighten.test',
461-
'exp' => new DateTime('Aug 2 13:16:40 2023 GMT')
462-
]
463-
]);
464-
$site->shouldReceive('domain')->with('tighten.test')->andReturn('tighten.test');
465-
$site->shouldReceive('secure')->with('tighten.test', null, 368)->once();
458+
$site->shouldReceive('renew')->andReturn();
466459
swap(RealSite::class, $site);
467460

468461
$nginx = Mockery::mock(Nginx::class);
@@ -471,8 +464,6 @@ public function test_renew_command()
471464

472465
$tester->run(['command' => 'renew']);
473466
$tester->assertCommandIsSuccessful();
474-
475-
$this->assertStringContainsString('tighten.test', $tester->getDisplay());
476467
}
477468

478469
public function test_proxy_command()

0 commit comments

Comments
 (0)