mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 04:07:32 -05:00 
			
		
		
		
	Fix throttling with tests
This commit is contained in:
		
							parent
							
								
									3abd0e0b17
								
							
						
					
					
						commit
						06a8ee1215
					
				@ -21,6 +21,7 @@ use Illuminate\Foundation\Testing\DatabaseTransactions;
 | 
				
			|||||||
use Illuminate\Foundation\Testing\RefreshDatabase;
 | 
					use Illuminate\Foundation\Testing\RefreshDatabase;
 | 
				
			||||||
use Illuminate\Foundation\Testing\WithFaker;
 | 
					use Illuminate\Foundation\Testing\WithFaker;
 | 
				
			||||||
use Illuminate\Foundation\Testing\WithoutEvents;
 | 
					use Illuminate\Foundation\Testing\WithoutEvents;
 | 
				
			||||||
 | 
					use Illuminate\Routing\Middleware\ThrottleRequests;
 | 
				
			||||||
use Illuminate\Support\Carbon;
 | 
					use Illuminate\Support\Carbon;
 | 
				
			||||||
use Illuminate\Support\Facades\Session;
 | 
					use Illuminate\Support\Facades\Session;
 | 
				
			||||||
use Illuminate\Validation\ValidationException;
 | 
					use Illuminate\Validation\ValidationException;
 | 
				
			||||||
@ -43,10 +44,6 @@ class PaymentTest extends TestCase
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        parent::setUp();
 | 
					        parent::setUp();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $this->withoutMiddleware(
 | 
					 | 
				
			||||||
            ThrottleRequests::class
 | 
					 | 
				
			||||||
        );
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        Session::start();
 | 
					        Session::start();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $this->faker = \Faker\Factory::create();
 | 
					        $this->faker = \Faker\Factory::create();
 | 
				
			||||||
@ -55,6 +52,10 @@ class PaymentTest extends TestCase
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        $this->makeTestData();
 | 
					        $this->makeTestData();
 | 
				
			||||||
        $this->withoutExceptionHandling();
 | 
					        $this->withoutExceptionHandling();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $this->withoutMiddleware(
 | 
				
			||||||
 | 
					            ThrottleRequests::class
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public function testPaymentList()
 | 
					    public function testPaymentList()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user