setOrigin() public method

Set target image
public setOrigin ( string $image )
$image string image content
 public function testGenerate()
 {
     list($manager) = $this->getMocks();
     Thumbnailer::setManager($manager);
     $instance = new Thumbnailer();
     $imageContent = file_get_contents(__DIR__ . '/sample.png');
     $mockCommand = m::mock('Xpressengine\\Media\\Commands\\CommandInterface');
     $mockCommand->shouldReceive('getName')->andReturn('letter');
     $mockCommand->shouldReceive('setOriginDimension')->once()->with(m::on(function ($object) {
         return $object instanceof Dimension;
     }));
     $mockCommand->shouldReceive('getMethod')->andReturn('resize');
     $mockCommand->shouldReceive('getExecArgs')->andReturn([100, 100]);
     $mockItvImage = m::mock('Intervention\\Image\\Image');
     $mockItvImage->shouldReceive('resize')->once()->with(100, 100)->andReturnSelf();
     $mockItvImage->shouldReceive('encode')->once()->andReturnSelf();
     $mockItvImage->shouldReceive('getEncoded')->once();
     $manager->shouldReceive('make')->once()->with($imageContent)->andReturn($mockItvImage);
     $instance->setOrigin($imageContent)->addCommand($mockCommand)->generate();
 }