public testApiGetType_PassesCallToProperFs_WhenFsExists ( Kraken\Filesystem\FilesystemManagerInterface $man, Prophecy\Prophecy\ObjectProphecy $p1, Prophecy\Prophecy\ObjectProphecy $p2 ) | ||
$man | Kraken\Filesystem\FilesystemManagerInterface | |
$p1 | Prophecy\Prophecy\ObjectProphecy | |
$p2 | Prophecy\Prophecy\ObjectProphecy |
public function testApiGetType_PassesCallToProperFs_WhenFsExists(FilesystemManagerInterface $man, ObjectProphecy $p1, ObjectProphecy $p2)
{
$type = 'type';
$this->expect($p1, 'getType', ['path'])->willReturn($type);
$this->prevent($p2, 'getType');
$this->assertEquals($type, $man->getType('fs1://path'));
}