File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ public function queue(...$parameters)
161
161
* @param string|null $domain
162
162
* @return void
163
163
*/
164
- public function queueForget ($ name , $ path = null , $ domain = null )
164
+ public function expire ($ name , $ path = null , $ domain = null )
165
165
{
166
166
$ this ->queue ($ this ->forget ($ name , $ path , $ domain ));
167
167
}
Original file line number Diff line number Diff line change @@ -118,12 +118,12 @@ public function testHasQueuedWithPath(): void
118
118
$ this ->assertFalse ($ cookieJar ->hasQueued ('foo ' , '/wrongPath ' ));
119
119
}
120
120
121
- public function testQueueForget ()
121
+ public function testExpire ()
122
122
{
123
123
$ cookieJar = $ this ->getCreator ();
124
124
$ this ->assertCount (0 , $ cookieJar ->getQueuedCookies ());
125
125
126
- $ cookieJar ->queueForget ('foobar ' , '/path ' , '/domain ' );
126
+ $ cookieJar ->expire ('foobar ' , '/path ' , '/domain ' );
127
127
128
128
$ cookie = $ cookieJar ->queued ('foobar ' );
129
129
$ this ->assertEquals ('foobar ' , $ cookie ->getName ());
You can’t perform that action at this time.
0 commit comments