JD\Cloudder\Test\CloudinaryWrapperTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        $this->config = m::mock('Illuminate\\Config\\Repository');
        $this->cloudinary = m::mock('Cloudinary');
        $this->uploader = m::mock('Cloudinary\\Uploader');
        $this->api = m::mock('Cloudinary\\Api');
        $this->config->shouldReceive('get')->once()->with('cloudder.cloudName')->andReturn('cloudName');
        $this->config->shouldReceive('get')->once()->with('cloudder.apiKey')->andReturn('apiKey');
        $this->config->shouldReceive('get')->once()->with('cloudder.apiSecret')->andReturn('apiSecret');
        $this->cloudinary->shouldReceive('config')->once();
        $this->cloudinary_wrapper = new CloudinaryWrapper($this->config, $this->cloudinary, $this->uploader, $this->api);
    }
CloudinaryWrapperTest