Test if Cookie is set

For some unknown reason, i can't test if a cookie has been set. Does anybody has an idea, why the test is not working.

The addon is working, but its bugging me that i cant write a propper test for this part.

I do bind a middleware into Statamic.

 public function handle($request, Closure $next)
       Cookie::put('fancyCookieName', 'coolValue');

        return $next($request);

My tests is looking like this:

$this->get('/')->seeCookie('fancyCookieName'); // false 

// Another try has been

$this->seeCookie('fancyCookieName'); // false

Some ideas?

>>>>>>> Unanswered <<<<<<<
0 Replies