Answer the question
In order to leave comments, you need to log in
Set cookie when testing via codeception
I do acceptance tests. You need to set a cookie (using PhpBrowser). Can anyone suggest how to do this?
Answer the question
In order to leave comments, you need to log in
Can you clarify what PhpBrowser is? In combination with codeception, nothing worthwhile is googled
I also don’t know what PhpBrowser is, but it won’t work in the forehead?:
$_COOKIE['test'] = 1;
$this->assertEquals(1, $_COOKIE['test]);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question