public function it_should_set_uploaded_result_when_uploading_picture()
{
// given
$filename = 'filename';
$defaults_options = ['public_id' => null, 'tags' => array()];
$expected_result = ['public_id' => '123456789'];
$this->uploader->shouldReceive('upload')->once()->with($filename, $defaults_options)->andReturn($expected_result);
// when
$this->cloudinary_wrapper->upload($filename);
// then
$result = $this->cloudinary_wrapper->getResult();
$this->assertEquals($expected_result, $result);
}