FilesystemTest::testRegisterProvider()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 2
c 1
b 0
f 1
dl 0
loc 7
rs 10
cc 1
nc 1
nop 0
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