Passed
Push — master ( 4244cd...c9003b )
by xiaohui
02:57
created

FilesystemTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 3
c 1
b 0
f 1
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testRegisterProvider() 0 7 1
1
<?php
2
namespace XiaohuiLam\LaravelFilesystem\Test;
3
4
use XiaohuiLam\LaravelFilesystem\Test\AbstractTest\AbstractTest;
5
use Illuminate\Support\Facades\Storage;
6
use XiaohuiLam\LaravelFilesystem\Wantu\WantuFileAdapter;
7
8
class FilesystemTest extends AbstractTest
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
    }
23
}
24