Skip to content

Commit 0d00cd5

Browse files
Added base test case
1 parent 46b9e84 commit 0d00cd5

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

tests/TestCase.php

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
/**
3+
* @link https://github.com/phpviet/laravel-flysystem
4+
* @copyright (c) PHP Viet
5+
* @license [MIT](http://www.opensource.org/licenses/MIT)
6+
*/
7+
8+
namespace PHPViet\Laravel\Flysystem\Tests;
9+
10+
use Illuminate\Cache\CacheServiceProvider;
11+
use Orchestra\Testbench\TestCase as BaseTestCase;
12+
use Illuminate\Filesystem\FilesystemServiceProvider;
13+
use PHPViet\Laravel\Flysystem\FlysystemServiceProvider;
14+
15+
/**
16+
* @author Vuong Minh <vuongxuongminh@gmail.com>
17+
* @since 1.0.0
18+
*/
19+
class TestCase extends BaseTestCase
20+
{
21+
protected function getEnvironmentSetUp($app)
22+
{
23+
$app['config']->set('filesystems', [
24+
'disks' => [
25+
'viettel' => [
26+
'driver' => 'viettel',
27+
'key' => 'test',
28+
'secret' => 'test',
29+
'bucket' => 'test'
30+
],
31+
]
32+
]);
33+
}
34+
35+
protected function getApplicationProviders($app): array
36+
{
37+
return [
38+
CacheServiceProvider::class,
39+
FilesystemServiceProvider::class,
40+
FlysystemServiceProvider::class,
41+
];
42+
}
43+
}

0 commit comments

Comments
 (0)