1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 08:10:07 +01:00
Files
laravel-valet/tests/Drivers/StatamicV1ValetDriverTest.php
2024-08-02 08:24:13 +00:00

29 lines
851 B
PHP

<?php
use Valet\Drivers\Specific\StatamicV1ValetDriver;
class StatamicV1ValetDriverTest extends BaseDriverTestCase
{
public function test_it_serves_statamicv1_projects()
{
$driver = new StatamicV1ValetDriver;
$this->assertTrue($driver->serves($this->projectDir('statamicv1'), 'my-site', '/'));
}
public function test_it_doesnt_serve_non_statamicv1_projects()
{
$driver = new StatamicV1ValetDriver;
$this->assertFalse($driver->serves($this->projectDir('public-with-index-non-laravel'), 'my-site', '/'));
}
public function test_it_gets_front_controller()
{
$driver = new StatamicV1ValetDriver;
$projectPath = $this->projectDir('statamicv1');
$this->assertEquals($projectPath.'/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
}
}