function FileCookieJarShimTest::setUp
File
-
core/
tests/ Drupal/ Tests/ Component/ Cookie/ FileCookieJarShimTest.php, line 39
Class
- FileCookieJarShimTest
- Tests the hardened backport of \GuzzleHttp\Cookie\FileCookieJar.
Namespace
Drupal\Tests\Component\CookieCode
protected function setUp() : void {
parent::setUp();
$this->file = tempnam(sys_get_temp_dir(), 'drupal_file_cookie_jar_');
// Start from a non-existent file so the constructor does not load.
unlink($this->file);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.