mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
29 lines
848 B
PHP
29 lines
848 B
PHP
<?php
|
|
|
|
use Valet\Drivers\Specific\WordPressValetDriver;
|
|
|
|
class WordPressValetDriverTest extends BaseDriverTestCase
|
|
{
|
|
public function test_it_serves_wordpress_projects()
|
|
{
|
|
$driver = new WordPressValetDriver();
|
|
|
|
$this->assertTrue($driver->serves($this->projectDir('wordpress'), 'my-site', '/'));
|
|
}
|
|
|
|
public function test_it_doesnt_serve_non_wordpress_projects()
|
|
{
|
|
$driver = new WordPressValetDriver();
|
|
|
|
$this->assertFalse($driver->serves($this->projectDir('public-with-index-non-laravel'), 'my-site', '/'));
|
|
}
|
|
|
|
public function test_it_gets_front_controller()
|
|
{
|
|
$driver = new WordPressValetDriver();
|
|
|
|
$projectPath = $this->projectDir('wordpress');
|
|
$this->assertEquals($projectPath.'/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
|
}
|
|
}
|