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

29 lines
826 B
PHP

<?php
use Valet\Drivers\DrupalValetDriver;
class DrupalValetDriverTest extends BaseDriverTestCase
{
public function test_it_serves_drupal_projects()
{
$driver = new DrupalValetDriver();
$this->assertTrue($driver->serves($this->projectDir('drupal'), 'my-site', '/'));
}
public function test_it_doesnt_serve_non_drupal_projects()
{
$driver = new DrupalValetDriver();
$this->assertFalse((bool) $driver->serves($this->projectDir('public-with-index-non-laravel'), 'my-site', '/'));
}
public function test_it_gets_front_controller()
{
$driver = new DrupalValetDriver();
$projectPath = $this->projectDir('drupal');
$this->assertEquals($projectPath.'/public/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
}
}