mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:07:32 -05:00 
			
		
		
		
	Password protection on company tests
This commit is contained in:
		
							parent
							
								
									700fd6bf99
								
							
						
					
					
						commit
						a183f058d4
					
				@ -117,6 +117,7 @@ class CompanyTest 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,
 | 
				
			||||||
 | 
					            'X-API-PASSWORD' => 'ALongAndBriliantPassword',
 | 
				
			||||||
        ])->delete('/api/v1/companies/'.$this->encodePrimaryKey($company->id))
 | 
					        ])->delete('/api/v1/companies/'.$this->encodePrimaryKey($company->id))
 | 
				
			||||||
        ->assertStatus(200);
 | 
					        ->assertStatus(200);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user