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