Kraken\_Unit\Filesystem\FilesystemTest::testApiGetType_ReturnsType_UsingGetMetadataOnModel PHP Method

testApiGetType_ReturnsType_UsingGetMetadataOnModel() public method

    public function testApiGetType_ReturnsType_UsingGetMetadataOnModel()
    {
        $path = 'path';
        $type = 'some_type';
        $this->expect('getMetadata', [$path])->willReturn(['type' => $type]);
        $this->assertEquals($type, $this->fs->getType($path));
    }
FilesystemTest