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 EstoqueController #73

Closed AlexLealMoura closed 4 years ago

AlexLealMoura commented 5 years ago

EstoqueControllerTest::testLogoutAction()


There were 2 failures:

1) ApplicationTest\Controller\EstoqueControllerTest::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/EstoqueControllerTest.php:64

2) 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

Corrigido pela tarefa #89