1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00
Files
laravel-valet/tests/Drivers/BedrockValetDriverTest.php
Matt Stauffer 400be90585 Resolve merge
2022-12-18 15:15:24 -06:00

29 lines
834 B
PHP

<?php
use Valet\Drivers\Specific\BedrockValetDriver;
class BedrockValetDriverTest extends BaseDriverTestCase
{
public function test_it_serves_bedrock_projects()
{
$driver = new BedrockValetDriver();
$this->assertTrue($driver->serves($this->projectDir('bedrock'), 'my-site', '/'));
}
public function test_it_doesnt_serve_non_bedrock_projects()
{
$driver = new BedrockValetDriver();
$this->assertFalse($driver->serves($this->projectDir('public-with-index-non-laravel'), 'my-site', '/'));
}
public function test_it_gets_front_controller()
{
$driver = new BedrockValetDriver();
$projectPath = $this->projectDir('bedrock');
$this->assertEquals($projectPath.'/web/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
}
}