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

priority test

This commit is contained in:
Jason Varga
2023-08-28 16:09:24 -04:00
parent b55140a079
commit df9e1effe4

View File

@@ -30,6 +30,15 @@ public function test_it_prioritizes_non_basic_matches()
$this->assertNotEquals('Valet\Drivers\BasicValetDriver', get_class($assignedDriver));
}
public function test_it_prioritizes_statamic()
{
$assignedDriver = ValetDriver::assign($this->projectDir('statamic'), 'my-site', '/');
$this->assertEquals('Valet\Drivers\Specific\StatamicValetDriver', get_class($assignedDriver));
$assignedDriver = ValetDriver::assign($this->projectDir('laravel'), 'my-site', '/');
$this->assertEquals('Valet\Drivers\LaravelValetDriver', get_class($assignedDriver));
}
public function test_it_checks_composer_dependencies()
{
$driver = new BasicValetDriver;