mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Building split transactions and fixing tests.
This commit is contained in:
		| @@ -155,11 +155,9 @@ class JsonControllerTest extends TestCase | ||||
|      */ | ||||
|     public function testTransactionJournals($range) | ||||
|     { | ||||
|         $type       = factory(FireflyIII\Models\TransactionType::class)->make(); | ||||
|         $repository = $this->mock('FireflyIII\Repositories\Journal\JournalRepositoryInterface'); | ||||
|  | ||||
|         $repository->shouldReceive('getTransactionType')->with('deposit')->once()->andReturn($type); | ||||
|         $repository->shouldReceive('getJournalsOfType')->with($type)->once()->andReturn(new Collection); | ||||
|         $paginator = new \Illuminate\Pagination\LengthAwarePaginator(new Collection, 0, 40); | ||||
|         $repository->shouldReceive('getJournals')->withAnyArgs()->once()->andReturn($paginator); | ||||
|  | ||||
|         $this->be($this->user()); | ||||
|         $this->changeDateRange($this->user(), $range); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user