Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2020-11-03 10:55:57 +0300
committerGitHub <noreply@github.com>2020-11-03 10:55:57 +0300
commit0739af50f6bf35a747e110a2f1178e17e8c21fa2 (patch)
tree78d4d16ef7f8fd1fe73efd19b00c5cf7afe0a55d /tests
parenta2b596fd463854dce23e91ec50f67507163e18fc (diff)
Fix build (#16658)
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Unit/CookieTest.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/PHPUnit/Unit/CookieTest.php b/tests/PHPUnit/Unit/CookieTest.php
index bd7425836e..6b56e7e2bf 100644
--- a/tests/PHPUnit/Unit/CookieTest.php
+++ b/tests/PHPUnit/Unit/CookieTest.php
@@ -70,6 +70,17 @@ class CookieTest extends \PHPUnit\Framework\TestCase
$this->cookie->set('ignore', '*f1');
$this->assertEquals('*f1', $this->cookie->get('ignore'));
}
+
+ public function test_delete_unsetsValues()
+ {
+ $_COOKIE[self::TEST_COOKIE_NAME] = 'hello=1.2';
+ $this->cookie = $this->makeCookie();
+ $this->assertEquals('1.2', $this->cookie->get('hello'));
+
+ $this->cookie->delete();
+
+ $this->assertEquals(false, $this->cookie->get('hello'));
+ }
public function test_generateContentString_usesBase64encode_string()
{