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

29 lines
810 B
PHP

<?php
use Valet\Drivers\Specific\Typo3ValetDriver;
class Typo3ValetDriverTest extends BaseDriverTestCase
{
public function test_it_serves_typo3_projects()
{
$driver = new Typo3ValetDriver;
$this->assertTrue($driver->serves($this->projectDir('typo3'), 'my-site', '/'));
}
public function test_it_doesnt_serve_non_typo3_projects()
{
$driver = new Typo3ValetDriver;
$this->assertFalse($driver->serves($this->projectDir('public-with-index-non-laravel'), 'my-site', '/'));
}
public function test_it_gets_front_controller()
{
$driver = new Typo3ValetDriver;
$projectPath = $this->projectDir('typo3');
$this->assertEquals($projectPath.'/web/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
}
}