1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-07 17:10:05 +01:00
Files
laravel-valet/tests/Drivers/KirbyValetDriverTest.php
2022-12-11 13:04:36 -05:00

29 lines
825 B
PHP

<?php
use Valet\Drivers\KirbyValetDriver;
class KirbyValetDriverTest extends BaseDriverTestCase
{
public function test_it_serves_kirby_projects()
{
$driver = new KirbyValetDriver();
$this->assertTrue($driver->serves($this->projectDir('kirby'), 'my-site', '/'));
}
public function test_it_doesnt_serve_non_kirby_projects_with_public_directory()
{
$driver = new KirbyValetDriver();
$this->assertFalse($driver->serves($this->projectDir('public-with-index-non-laravel'), 'my-site', '/'));
}
public function test_it_gets_front_controller()
{
$driver = new KirbyValetDriver();
$projectPath = $this->projectDir('kirby');
$this->assertEquals($projectPath.'/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
}
}