summaryrefslogtreecommitdiffstats
path: root/php-zendframework-zendservice-recaptcha-pr12.patch
blob: 9d8d668f91da78e61dc7e7e1c57f8962155c1162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From a72b6a337c7567fd8825e3b3fcd571a117dfc4f8 Mon Sep 17 00:00:00 2001
From: Remi Collet <fedora@famillecollet.com>
Date: Thu, 2 Mar 2017 08:44:42 +0100
Subject: [PATCH] tag online tests to be able to easily skip them

---
 test/ReCaptchaTest.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/ReCaptchaTest.php b/test/ReCaptchaTest.php
index f79937d..8fd4032 100644
--- a/test/ReCaptchaTest.php
+++ b/test/ReCaptchaTest.php
@@ -268,6 +268,9 @@ public function testVerifyWithMissingIp()
         $this->reCaptcha->verify('challenge', 'response');
     }
 
+    /**
+     * @group online
+     */
     public function testVerifyWithMissingChallengeField()
     {
         $this->reCaptcha->setSecretKey($this->secretKey);
@@ -276,6 +279,9 @@ public function testVerifyWithMissingChallengeField()
         $this->assertFalse($response->getStatus());
     }
 
+    /**
+     * @group online
+     */
     public function testVerifyWithMissingResponseField()
     {
         $this->reCaptcha->setSecretKey($this->secretKey);