fgsl / lojasacme

Exemplo de loja virtual
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Corrigir inconsistĂȘncia de teste de logout do IndexController #74

Closed AlexLealMoura closed 4 years ago

AlexLealMoura commented 5 years ago

IndexControllerTest::testLogoutAction()


There was 1 failure:

1) ApplicationTest\Controller\IndexControllerTest::testLogoutAction
Failed asserting response code "302", actual status code is "500"

Exceptions raised:
Exception 'PHPUnit\Framework\Error\Warning' with message 'session_destroy(): Trying to destroy uninitialized session' in /home/[userid]/lojasacme/vendor/zendframework/zend-session/src/SessionManager.php:203

/home/[userid]/lojasacme/vendor/zendframework/zend-test/src/PHPUnit/Controller/AbstractControllerTestCase.php:451
/home/[userid]/lojasacme/module/Application/test/Controller/IndexControllerTest.php:86
AlissonBM commented 4 years ago

Corrigida pela tarefa #89