mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			624 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			624 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| namespace api\tests\functional;
 | |
| 
 | |
| use api\tests\_pages\OptionsRoute;
 | |
| use api\tests\FunctionalTester;
 | |
| 
 | |
| class OptionsCest {
 | |
| 
 | |
|     /**
 | |
|      * @var OptionsRoute
 | |
|      */
 | |
|     private $route;
 | |
| 
 | |
|     public function _before(FunctionalTester $I) {
 | |
|         $this->route = new OptionsRoute($I);
 | |
|     }
 | |
| 
 | |
|     public function testRecaptchaPublicKey(FunctionalTester $I) {
 | |
|         $I->wantTo('Get recaptcha public key');
 | |
| 
 | |
|         $this->route->get();
 | |
|         $I->canSeeResponseCodeIs(200);
 | |
|         $I->canSeeResponseIsJson();
 | |
|         $I->canSeeResponseContainsJson([
 | |
|             'reCaptchaPublicKey' => 'public-key',
 | |
|         ]);
 | |
|     }
 | |
| 
 | |
| }
 |