mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 08:07:34 -05:00 
			
		
		
		
	Fixes for tests
This commit is contained in:
		
							parent
							
								
									934a30f661
								
							
						
					
					
						commit
						a17c24f950
					
				@ -579,7 +579,7 @@ class RecurringInvoiceTest extends TestCase
 | 
				
			|||||||
            'user_id' => $this->user->id,
 | 
					            'user_id' => $this->user->id,
 | 
				
			||||||
            'cost' => 10,
 | 
					            'cost' => 10,
 | 
				
			||||||
            'price' => 10,
 | 
					            'price' => 10,
 | 
				
			||||||
            'product_key' => $this->faker->word,
 | 
					            'product_key' => $this->faker->unique()->word(),
 | 
				
			||||||
        ]);
 | 
					        ]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $p2 = Product::factory()->create([
 | 
					        $p2 = Product::factory()->create([
 | 
				
			||||||
@ -587,7 +587,7 @@ class RecurringInvoiceTest extends TestCase
 | 
				
			|||||||
            'user_id' => $this->user->id,
 | 
					            'user_id' => $this->user->id,
 | 
				
			||||||
            'cost' => 20,
 | 
					            'cost' => 20,
 | 
				
			||||||
            'price' => 20,
 | 
					            'price' => 20,
 | 
				
			||||||
            'product_key' => $this->faker->word,
 | 
					            'product_key' => $this->faker->unique()->word(),
 | 
				
			||||||
        ]);
 | 
					        ]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $recurring_invoice = RecurringInvoiceFactory::create($this->company->id, $this->user->id);
 | 
					        $recurring_invoice = RecurringInvoiceFactory::create($this->company->id, $this->user->id);
 | 
				
			||||||
@ -627,7 +627,7 @@ class RecurringInvoiceTest extends TestCase
 | 
				
			|||||||
        $response = $this->withHeaders([
 | 
					        $response = $this->withHeaders([
 | 
				
			||||||
            'X-API-SECRET' => config('ninja.api_secret'),
 | 
					            'X-API-SECRET' => config('ninja.api_secret'),
 | 
				
			||||||
            'X-API-TOKEN' => $this->token,
 | 
					            'X-API-TOKEN' => $this->token,
 | 
				
			||||||
        ])->get('/api/v1/recurring_invoices?product_key=' . $this->faker->word)
 | 
					        ])->get('/api/v1/recurring_invoices?product_key=' . $this->faker->unique()->word())
 | 
				
			||||||
            ->assertStatus(200);
 | 
					            ->assertStatus(200);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $arr = $response->json();
 | 
					        $arr = $response->json();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user