Пример #1
0
 public function testModify()
 {
     list($handler, $repo, $auth, $keygen) = $this->getMocks();
     $mockFile = m::mock('Xpressengine\\Storage\\File');
     $repo->shouldReceive('update')->once()->with($mockFile)->andReturn($mockFile);
     $instance = new Storage($handler, $repo, $auth, $keygen);
     $file = $instance->modify($mockFile);
     $this->assertInstanceOf('Xpressengine\\Storage\\File', $file);
 }