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

Clean up DX for fetch-share-url

This commit is contained in:
Matt Stauffer
2022-12-25 23:59:25 -05:00
parent 5988c4f881
commit f13be53b9f
4 changed files with 29 additions and 7 deletions

View File

@@ -949,6 +949,18 @@ public function test_it_can_read_php_rc_version()
$this->assertEquals('php@8.0', $siteMock->phpRcVersion('site2'));
$this->assertEquals(null, $siteMock->phpRcVersion('site3')); // Site doesn't exists
}
public function test_it_appends_tld_to_domain()
{
$site = resolve(Site::class);
$this->assertEquals('symposium.test', $site->domain('symposium'));
}
public function test_it_doesnt_double_append_tld_to_domain()
{
$site = resolve(Site::class);
$this->assertEquals('symposium.test', $site->domain('symposium.test'));
}
}
class CommandLineFake extends CommandLine