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

it_should_call_api_rename_when_calling_rename() public method

    public function it_should_call_api_rename_when_calling_rename()
    {
        // given
        $from = 'from';
        $to = 'to';
        $this->uploader->shouldReceive('rename')->with($from, $to, array())->once();
        // when
        $this->cloudinary_wrapper->rename($from, $to);
    }
CloudinaryWrapperTest