public function testApiIsDir_ReturnsTrue_WhenModelReturnsMetadataForDir() { $path = 'path'; $this->expect('getMetadata', [$path])->willReturn(['type' => 'dir']); $this->assertTrue($this->fs->isDir($path)); }