mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-27 19:51:09 -04:00 
			
		
		
		
	* Create PHP CS Fixer config and add to CI workflow * Run php cs fixer on project * Add newline at end of file * Update to use PHP CS Fixer v3 * Run v3 config on project * Run seperate config in CI
		
			
				
	
	
		
			24 lines
		
	
	
		
			508 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			508 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| use Crater\Http\Requests\PaymentMethodRequest;
 | |
| 
 | |
| test('payment method request validation rules', function () {
 | |
|     $request = new PaymentMethodRequest();
 | |
| 
 | |
|     $this->assertEquals(
 | |
|         [
 | |
|             'name' => [
 | |
|                 'required',
 | |
|                 'unique:payment_methods,name',
 | |
|             ],
 | |
|         ],
 | |
|         $request->rules()
 | |
|     );
 | |
| });
 | |
| 
 | |
| test('payment method request authorize', function () {
 | |
|     $request = new PaymentMethodRequest();
 | |
| 
 | |
|     $this->assertTrue($request->authorize());
 | |
| });
 |