mirror of
https://github.com/laravel/valet.git
synced 2026-02-08 17:20:08 +01:00
Move all drivers to PSR autoload, and write tests
This commit is contained in:
27
tests/Drivers/KatanaValetDriverTest.php
Normal file
27
tests/Drivers/KatanaValetDriverTest.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
use Valet\Drivers\KatanaValetDriver;
|
||||
|
||||
class KatanaValetDriverTest extends BaseDriverTestCase
|
||||
{
|
||||
public function test_it_serves_katana_projects()
|
||||
{
|
||||
$driver = new KatanaValetDriver();
|
||||
|
||||
$this->assertTrue($driver->serves($this->projectDir('katana'), 'my-site', '/'));
|
||||
}
|
||||
|
||||
public function test_it_doesnt_serve_non_katana_projects_with_public_directory()
|
||||
{
|
||||
$driver = new KatanaValetDriver();
|
||||
|
||||
$this->assertFalse($driver->serves($this->projectDir('public-with-index-non-laravel'), 'my-site', '/'));
|
||||
}
|
||||
|
||||
public function test_it_mutates_uri()
|
||||
{
|
||||
$driver = new KatanaValetDriver();
|
||||
|
||||
$this->assertEquals('/public/about', $driver->mutateUri('/about'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user