Ejemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     $this->files = Mockery::mock(Filesystem::class);
     $this->disk = Mockery::mock(FilesystemAdapter::class);
     $this->filename = Mockery::mock(FilenameGenerator::class);
     $this->uploadedFile = Mockery::mock(UploadedFile::class);
     $this->config = Mockery::mock(Config::class);
     $this->files->shouldReceive('disk')->once()->andReturn($this->disk);
     $this->config->shouldReceive('get')->with('clyde.source')->once()->andReturn('local');
     $this->config->shouldReceive('get')->with('clyde.source_path_prefix')->once()->andReturn('/uploads');
     $this->uploads = new ClydeUpload($this->config, $this->files, $this->filename);
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     $this->config = Mockery::mock(Config::class);
     $this->images = new ClydeImage($this->config);
 }