public function clearCookie($key) { $this->cookieJar->clear($key); return $this->withCookieParams($this->cookieJar->all()); }
public function testCanClearCookieEvenIfKeyDoesNotExist() { $key = $this->getFaker()->word; $cookieJar = new CookieJar(); $cookieJar->clear($key); $this->assertSame([], $cookieJar->all()); }