mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Make sure the attachment tests work.
This commit is contained in:
		| @@ -58,6 +58,10 @@ class AttachmentControllerTest extends TestCase | ||||
|      */ | ||||
|     public function testDownload() | ||||
|     { | ||||
|         $repository = $this->mock(AttachmentRepositoryInterface::class); | ||||
|         $repository->shouldReceive('exists')->once()->andReturn(true); | ||||
|         $repository->shouldReceive('getContent')->once()->andReturn('This is attachment number one.'); | ||||
|  | ||||
|         $this->be($this->user()); | ||||
|         $this->call('GET', route('attachments.download', [1])); | ||||
|         $this->assertResponseStatus(200); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user