mirror of
https://github.com/bs-community/blessing-skin-server
synced 2026-08-18 04:32:05 -04:00
28 lines
685 B
PHP
28 lines
685 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Tests;
|
||
|
|
|
||
|
|
use Illuminate\Filesystem\Filesystem;
|
||
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||
|
|
|
||
|
|
class CheckInstallationTest extends TestCase
|
||
|
|
{
|
||
|
|
use DatabaseTransactions;
|
||
|
|
|
||
|
|
public function testHandle()
|
||
|
|
{
|
||
|
|
$this->get('/setup')->assertSee('Already installed');
|
||
|
|
|
||
|
|
$this->mock(Filesystem::class, function ($mock) {
|
||
|
|
$mock->shouldReceive('exists')
|
||
|
|
->with(storage_path('install.lock'))
|
||
|
|
->twice()
|
||
|
|
->andReturn(false);
|
||
|
|
});
|
||
|
|
$this->get('/setup')->assertSee(trans(
|
||
|
|
'setup.wizard.welcome.text',
|
||
|
|
['version' => config('app.version')]
|
||
|
|
));
|
||
|
|
}
|
||
|
|
}
|