mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Fix test data.
This commit is contained in:
		| @@ -363,7 +363,11 @@ class TestDataSeeder extends Seeder | ||||
|      */ | ||||
|     protected function createIncome($description, Carbon $date, $amount) | ||||
|     { | ||||
|         $date        = new Carbon($date->format('Y-m') . '-23'); // paid on 23rd. | ||||
|         $date  = new Carbon($date->format('Y-m') . '-23'); // paid on 23rd. | ||||
|         $today = new Carbon; | ||||
|         if ($date >= $today) { | ||||
|             return null; | ||||
|         } | ||||
|         $toAccount   = $this->findAccount('MyBank Checking Account'); | ||||
|         $fromAccount = $this->findAccount('Job'); | ||||
|         $category    = Category::firstOrCreateEncrypted(['name' => 'Salary', 'user_id' => $this->user->id]); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user