@@ -17,59 +17,59 @@ |
||
| 17 | 17 | class ReCaptchaLangTest extends TestCase |
| 18 | 18 | { |
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * @var ReCaptchaBuilderInvisible |
|
| 22 | - */ |
|
| 23 | - protected $recaptcha_invisible; |
|
| 20 | + /** |
|
| 21 | + * @var ReCaptchaBuilderInvisible |
|
| 22 | + */ |
|
| 23 | + protected $recaptcha_invisible; |
|
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * @var ReCaptchaBuilderV2 |
|
| 27 | - */ |
|
| 28 | - protected $recaptcha_v2; |
|
| 25 | + /** |
|
| 26 | + * @var ReCaptchaBuilderV2 |
|
| 27 | + */ |
|
| 28 | + protected $recaptcha_v2; |
|
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * @tests |
|
| 32 | - */ |
|
| 33 | - public function testHtmlScriptTagJsApiGetHtmlScriptWithHlParam() |
|
| 34 | - { |
|
| 30 | + /** |
|
| 31 | + * @tests |
|
| 32 | + */ |
|
| 33 | + public function testHtmlScriptTagJsApiGetHtmlScriptWithHlParam() |
|
| 34 | + { |
|
| 35 | 35 | |
| 36 | - $r = ReCaptcha::htmlScriptTagJsApi(); |
|
| 37 | - $this->assertEquals('<script src="https://www.google.com/recaptcha/api.js?hl=it" async defer></script>', $r); |
|
| 38 | - } |
|
| 36 | + $r = ReCaptcha::htmlScriptTagJsApi(); |
|
| 37 | + $this->assertEquals('<script src="https://www.google.com/recaptcha/api.js?hl=it" async defer></script>', $r); |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - /** |
|
| 41 | - * @tests |
|
| 42 | - */ |
|
| 43 | - public function testHtmlScriptTagJsApiGetHtmlScriptOverridingHlParam() |
|
| 44 | - { |
|
| 40 | + /** |
|
| 41 | + * @tests |
|
| 42 | + */ |
|
| 43 | + public function testHtmlScriptTagJsApiGetHtmlScriptOverridingHlParam() |
|
| 44 | + { |
|
| 45 | 45 | |
| 46 | - $r = ReCaptcha::htmlScriptTagJsApi(['lang' => 'en']); |
|
| 47 | - $this->assertEquals('<script src="https://www.google.com/recaptcha/api.js?hl=en" async defer></script>', $r); |
|
| 48 | - } |
|
| 46 | + $r = ReCaptcha::htmlScriptTagJsApi(['lang' => 'en']); |
|
| 47 | + $this->assertEquals('<script src="https://www.google.com/recaptcha/api.js?hl=en" async defer></script>', $r); |
|
| 48 | + } |
|
| 49 | 49 | |
| 50 | - /** |
|
| 51 | - * Define environment setup. |
|
| 52 | - * |
|
| 53 | - * @param \Illuminate\Foundation\Application $app |
|
| 54 | - * |
|
| 55 | - * @return void |
|
| 56 | - */ |
|
| 57 | - protected function getEnvironmentSetUp($app) |
|
| 58 | - { |
|
| 50 | + /** |
|
| 51 | + * Define environment setup. |
|
| 52 | + * |
|
| 53 | + * @param \Illuminate\Foundation\Application $app |
|
| 54 | + * |
|
| 55 | + * @return void |
|
| 56 | + */ |
|
| 57 | + protected function getEnvironmentSetUp($app) |
|
| 58 | + { |
|
| 59 | 59 | |
| 60 | - $app['config']->set('recaptcha.default_language', 'it'); |
|
| 61 | - } |
|
| 60 | + $app['config']->set('recaptcha.default_language', 'it'); |
|
| 61 | + } |
|
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * Setup the test environment. |
|
| 65 | - */ |
|
| 66 | - protected function setUp(): void |
|
| 67 | - { |
|
| 63 | + /** |
|
| 64 | + * Setup the test environment. |
|
| 65 | + */ |
|
| 66 | + protected function setUp(): void |
|
| 67 | + { |
|
| 68 | 68 | |
| 69 | - parent::setUp(); // TODO: Change the autogenerated stub |
|
| 69 | + parent::setUp(); // TODO: Change the autogenerated stub |
|
| 70 | 70 | |
| 71 | - $this->recaptcha_invisible = new ReCaptchaBuilderInvisible('api_site_key', 'api_secret_key'); |
|
| 72 | - $this->recaptcha_v2 = new ReCaptchaBuilderV2('api_site_key', 'api_secret_key'); |
|
| 71 | + $this->recaptcha_invisible = new ReCaptchaBuilderInvisible('api_site_key', 'api_secret_key'); |
|
| 72 | + $this->recaptcha_v2 = new ReCaptchaBuilderV2('api_site_key', 'api_secret_key'); |
|
| 73 | 73 | |
| 74 | - } |
|
| 74 | + } |
|
| 75 | 75 | } |
| 76 | 76 | \ No newline at end of file |