mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Remove test class for laravel recipe
This commit is contained in:
parent
6b69e8f3e4
commit
d48ee4f4e7
@ -1,40 +0,0 @@
|
||||
<?php
|
||||
/* (c) Anton Medvedev <anton@elfet.ru>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Deployer\Helper\RecipeTester;
|
||||
|
||||
class LaravelTest extends RecipeTester
|
||||
{
|
||||
protected function loadRecipe()
|
||||
{
|
||||
require __DIR__ . '/../../recipe/laravel.php';
|
||||
}
|
||||
|
||||
public function testDeploy()
|
||||
{
|
||||
set('repository', 'git@github.com:laravel/laravel.git');
|
||||
set('writable_use_sudo', false); // Using sudo in writable commands?
|
||||
|
||||
$this->exec('deploy');
|
||||
|
||||
$this->assertEquals(
|
||||
realpath($this->getEnv('release_path') . '/storage'),
|
||||
$this->getEnv('deploy_path') . '/shared/storage'
|
||||
);
|
||||
$this->assertTrue(is_dir($this->getEnv('deploy_path') . '/shared/storage'));
|
||||
$this->assertTrue(is_writable($this->getEnv('deploy_path') . '/shared/storage'));
|
||||
|
||||
$this->assertTrue(is_writable($this->getEnv('release_path') . '/vendor'));
|
||||
|
||||
$this->assertEquals(
|
||||
realpath($this->getEnv('release_path') . '/.env'),
|
||||
$this->getEnv('deploy_path') . '/shared/.env'
|
||||
);
|
||||
$this->assertFileExists($this->getEnv('deploy_path') . '/shared/.env');
|
||||
$this->assertTrue(is_link($this->getEnv('release_path') . '/.env'));
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user