public function testPrepare() { $path = vfsStream::url('root/test'); $md5File = md5_file($path); $media = $this->getMock('\\Oryzone\\MediaStorage\\Model\\MediaInterface'); $media->expects($this->once())->method('setMetaValue')->with($this->equalTo('id'), $this->equalTo($md5File)); $media->expects($this->any())->method('getContent')->will($this->returnValue($path)); $context = $this->getMock('\\Oryzone\\MediaStorage\\Context\\ContextInterface'); $this->provider->prepare($media, $context); }