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

testApiGetMimetype_ReturnsMimetype_UsingGetMetadataOnModel() public method

    public function testApiGetMimetype_ReturnsMimetype_UsingGetMetadataOnModel()
    {
        $path = 'path';
        $array = ['key1' => 'val1', 'key2' => 'val2'];
        $this->expect('getMimetype', [$path])->willReturn($array);
        $this->assertEquals($array, $this->fs->getMimetype($path));
    }
FilesystemTest