public function testApiIsFile_ReturnsTrue_WhenModelReturnsMetadataForFile() { $path = 'path'; $this->expect('getMetadata', [$path])->willReturn(['type' => 'file']); $this->assertTrue($this->fs->isFile($path)); }