File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments