Codeception Cannot send session cache limiter

Notice: This thread is very old.
dkorpar
Member | 135
+
0
-

Hi, I have following problem with: https://gitlab.atreo.cz/…codeception/
Page runs fine and no error is given when running through nginx, but when running through cli with codeception I get following error:

Functional Tests (1) ---------------------------------------
E HomepageCest: Verify homepage (0.08s)

[Nette\InvalidStateException]
Cannot send session cache limiter – headers already sent (output started at
latte\FrontendModule-@layout.latte--434e6a3aca.php:28)

There's only one test defined now and I can't find reason why this is showing up.
I also have autoStart: true, and as I said when not running through cli it's running normal.

enumag
Member | 2118
+
0
-

Interesting I wasn't aware that someone else has written a codeception module for nette too (mine is here).

Try disabling session autoStart: true and see the error shows up. If that works autoStart: smart should work too (and it's better than autoStart: true).

Last edited by enumag (2016-09-29 07:13)

dkorpar
Member | 135
+
0
-

I actually tried your first but had problems setting it up also, some latte addMacro error, so I thought it's not compatibble with nette 2.4 (~2.3 is in composer), and I was able to set up this one, except that I get this problem, but not sure it's related… Anyway smart option was before and since I had problems I've set it to true, so that won't help… TBH I would rather setup yours since it looks more fresh, and more activity, and it's on github at least, while this is on “private” gitlab repository…

edit: tried your again, I figured out addMacro problem was there because I did not define bootstrap file well, but I still get error:

  1. HomepageCest: Verify homepage

    Test tests\functional\HomepageCest.php:VerifyHomepage

    [Nette\Application\BadRequestException] No route for HTTP request.

Scenario Steps:

1. $I->amOnPage(“/”) at tests\functional\HomepageCest.php:18

Routes are defined in bootstrap.php file which is included…
Hm that part actually worked on other one, I'm probably missing some config…
Any tips?

Actually since this is something related to mysetup/your plugin I'll opened issue on github, and let's continue there… https://github.com/…ion/issues/5

Last edited by dkorpar (2016-09-29 12:30)