Skip to content

Commit

Permalink
Created test for Issue phalcon#13464
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronHall committed Jan 7, 2019
1 parent e8dcc7d commit c3dab58
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/unit/Http/Cookie/CookieCest.php
Expand Up @@ -149,4 +149,22 @@ public function shouldWorkWithoutInitializeInternalCookiesProperty(UnitTester $I
$actual = $cookies->send();
$I->assertTrue($actual);
}

public function testIssue13464(UnitTester $I)
{
$I->wantToTest("Issue #13464");

$this->setDiCrypt();
$container = $this->getDi();

$cookie = new Cookies();
$cookie->setDI($container);
$cookie->useEncryption(false);
$cookie->set(__METHOD__, 'potato', time() + 86400, '/', false, 'localhost', false);
$cookie->send();

$cookie = $this->getCookie(__METHOD__);

$I->assertNotRegexp('/HttpOnly$/', $cookie);
}
}

0 comments on commit c3dab58

Please sign in to comment.