@@ -7,17 +7,17 @@ |
||
| 7 | 7 | |
| 8 | 8 | class FilesystemTest extends AbstractTest |
| 9 | 9 | { |
| 10 | - /** |
|
| 11 | - * 测试登陆 |
|
| 12 | - * |
|
| 13 | - * @return void |
|
| 14 | - */ |
|
| 15 | - public function testRegisterProvider() |
|
| 16 | - { |
|
| 17 | - /** |
|
| 18 | - * @var \Illuminate\Filesystem\FilesystemAdapter $disk |
|
| 19 | - */ |
|
| 20 | - $disk = Storage::disk('wantu'); |
|
| 21 | - $this->assertEquals(WantuFileAdapter::class, get_class($disk->getDriver()->getAdapter())); |
|
| 22 | - } |
|
| 10 | + /** |
|
| 11 | + * 测试登陆 |
|
| 12 | + * |
|
| 13 | + * @return void |
|
| 14 | + */ |
|
| 15 | + public function testRegisterProvider() |
|
| 16 | + { |
|
| 17 | + /** |
|
| 18 | + * @var \Illuminate\Filesystem\FilesystemAdapter $disk |
|
| 19 | + */ |
|
| 20 | + $disk = Storage::disk('wantu'); |
|
| 21 | + $this->assertEquals(WantuFileAdapter::class, get_class($disk->getDriver()->getAdapter())); |
|
| 22 | + } |
|
| 23 | 23 | } |
@@ -10,33 +10,33 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | abstract class AbstractTest extends TestCase |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * Creates the application. |
|
| 15 | - * |
|
| 16 | - * @return \Illuminate\Foundation\Application |
|
| 17 | - */ |
|
| 18 | - public function createApplication() |
|
| 19 | - { |
|
| 20 | - /** |
|
| 21 | - * @var \Illuminate\Foundation\Application $app |
|
| 22 | - */ |
|
| 23 | - $app = require __DIR__ . '/../../vendor/laravel/laravel/bootstrap/app.php'; |
|
| 13 | + /** |
|
| 14 | + * Creates the application. |
|
| 15 | + * |
|
| 16 | + * @return \Illuminate\Foundation\Application |
|
| 17 | + */ |
|
| 18 | + public function createApplication() |
|
| 19 | + { |
|
| 20 | + /** |
|
| 21 | + * @var \Illuminate\Foundation\Application $app |
|
| 22 | + */ |
|
| 23 | + $app = require __DIR__ . '/../../vendor/laravel/laravel/bootstrap/app.php'; |
|
| 24 | 24 | |
| 25 | - $app->make(Kernel::class)->bootstrap(); |
|
| 25 | + $app->make(Kernel::class)->bootstrap(); |
|
| 26 | 26 | |
| 27 | - config()->set('app.env', 'testing'); |
|
| 28 | - config()->set('app.debug', true); |
|
| 29 | - config()->set('app.key', 'AckfSECXIvnK5r28GVIWUAxmbBSjTsmF'); |
|
| 30 | - config()->set('filesystems.disks.wantu', [ |
|
| 31 | - 'driver' => 'wantu', |
|
| 32 | - 'access_key' => 'test', |
|
| 33 | - 'secret_key' => 'test', |
|
| 34 | - 'namespace' => 'test', |
|
| 35 | - 'domain' => 'test', |
|
| 36 | - ]); |
|
| 27 | + config()->set('app.env', 'testing'); |
|
| 28 | + config()->set('app.debug', true); |
|
| 29 | + config()->set('app.key', 'AckfSECXIvnK5r28GVIWUAxmbBSjTsmF'); |
|
| 30 | + config()->set('filesystems.disks.wantu', [ |
|
| 31 | + 'driver' => 'wantu', |
|
| 32 | + 'access_key' => 'test', |
|
| 33 | + 'secret_key' => 'test', |
|
| 34 | + 'namespace' => 'test', |
|
| 35 | + 'domain' => 'test', |
|
| 36 | + ]); |
|
| 37 | 37 | |
| 38 | - $app->register(WantuFileServiceProvider::class); |
|
| 38 | + $app->register(WantuFileServiceProvider::class); |
|
| 39 | 39 | |
| 40 | - return $app; |
|
| 41 | - } |
|
| 40 | + return $app; |
|
| 41 | + } |
|
| 42 | 42 | } |