mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
- Extract much of server.php into a `Server` class - Move all but the Laravel and Basic drivers into a subfolder - Load all but the Laravel and Basic drivers via glob - Add `beforeLoading` hook to simplify the `frontControllerPath` method for some drivers
29 lines
811 B
PHP
29 lines
811 B
PHP
<?php
|
|
|
|
use Valet\Drivers\Specific\CakeValetDriver;
|
|
|
|
class CakeValetDriverTest extends BaseDriverTestCase
|
|
{
|
|
public function test_it_serves_cake_projects()
|
|
{
|
|
$driver = new CakeValetDriver();
|
|
|
|
$this->assertTrue($driver->serves($this->projectDir('cake'), 'my-site', '/'));
|
|
}
|
|
|
|
public function test_it_doesnt_serve_non_cake_projects()
|
|
{
|
|
$driver = new CakeValetDriver();
|
|
|
|
$this->assertFalse($driver->serves($this->projectDir('public-with-index-non-laravel'), 'my-site', '/'));
|
|
}
|
|
|
|
public function test_it_gets_front_controller()
|
|
{
|
|
$driver = new CakeValetDriver();
|
|
|
|
$projectPath = $this->projectDir('cake');
|
|
$this->assertEquals($projectPath.'/webroot/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
|
}
|
|
}
|