mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	Rework tests structure. Upgrade codeception to 2.5.3. Merge params configuration into app configuration.
This commit is contained in:
		
							
								
								
									
										26
									
								
								api/config/config-test.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								api/config/config-test.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
<?php
 | 
			
		||||
return [
 | 
			
		||||
    'components' => [
 | 
			
		||||
        'user' => [
 | 
			
		||||
            'secret' => 'tests-secret-key',
 | 
			
		||||
        ],
 | 
			
		||||
        'reCaptcha' => [
 | 
			
		||||
            'public' => 'public-key',
 | 
			
		||||
            'secret' => 'private-key',
 | 
			
		||||
        ],
 | 
			
		||||
    ],
 | 
			
		||||
    'params' => [
 | 
			
		||||
        'authserverHost' => 'localhost',
 | 
			
		||||
    ],
 | 
			
		||||
    'container' => [
 | 
			
		||||
        'definitions' => [
 | 
			
		||||
            api\components\ReCaptcha\Validator::class => function() {
 | 
			
		||||
                return new class(new GuzzleHttp\Client()) extends api\components\ReCaptcha\Validator {
 | 
			
		||||
                    protected function validateValue($value) {
 | 
			
		||||
                        return null;
 | 
			
		||||
                    }
 | 
			
		||||
                };
 | 
			
		||||
            },
 | 
			
		||||
        ],
 | 
			
		||||
    ],
 | 
			
		||||
];
 | 
			
		||||
		Reference in New Issue
	
	Block a user