salmon-river-59357
04/16/2021, 2:04 PMdocker/sdk testing codecept run -c tests/PyzTest/Zed/Tax/codeception.yml
and I get these errors:
Notice: Undefined index: ZED_DB_ENGINE in /data/config/Shared/config_propel.php on line 14
Notice: Undefined index: ZED_DB_HOST in /data/config/Shared/config_propel.php on line 15
Notice: Undefined index: ZED_DB_PORT in /data/config/Shared/config_propel.php on line 16
Notice: Undefined index: ZED_DB_DATABASE in /data/config/Shared/config_propel.php on line 17
Notice: Undefined index: ZED_DB_USERNAME in /data/config/Shared/config_propel.php on line 39
Notice: Undefined index: ZED_DB_PASSWORD in /data/config/Shared/config_propel.php on line 40
Notice: Undefined index: ZED_DB_USERNAME in /data/config/Shared/config_propel.php on line 47
Notice: Undefined index: ZED_DB_PASSWORD in /data/config/Shared/config_propel.php on line 48
Notice: Undefined index: ZED_DB_ENGINE in /data/config/Shared/config_propel.php on line 85
Notice: Undefined index: ZED_DB_ENGINE in /data/config/Shared/config_propel.php on line 90
Notice: Undefined index: in /data/config/Shared/config_propel.php on line 91
Notice: Undefined index: in /data/config/Shared/config_propel.php on line 92
PyzTest\Zed\Tax.Presentation Tests (5) ---------------------------------------------------------------------------------------------------------------
E TaxRateCreateCest: Test create valid tax rate should show success message
------------------------------------------------------------------------------------------------------------------------------------------------------
Fatal error: Uncaught Error: Call to a member function closeConnections() on null in /data/vendor/propel/propel/src/Propel/Runtime/Propel.php:190
Stack trace:
#0 /data/vendor/spryker/propel/tests/SprykerTest/Shared/Propel/_support/Helper/ConnectionHelper.php(55): Propel\Runtime\Propel::closeConnections()
#1 /data/vendor/codeception/codeception/src/Codeception/Subscriber/Module.php(66): SprykerTest\Shared\Propel\Helper\ConnectionHelper->_after(Object(Codeception\Test\Cest))
#2 /data/vendor/symfony/event-dispatcher/EventDispatcher.php(264): Codeception\Subscriber\Module->after(Object(Codeception\Event\TestEvent), 'test.after', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#3 /data/vendor/symfony/event-dispatcher/EventDispatcher.php(239): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'test.after', Object(Codeception\Event\TestEvent))
#4 /data/vendor/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'test.after', Object in /data/vendor/propel/propel/src/Propel/Runtime/Propel.php on line 190
I do not understand why the properties in config_propel.php are not set? What can be the reason?
Posted in #generalpolite-lunch-97479
04/16/2021, 2:13 PMdocker/sdk testing codecept runsalmon-river-59357
04/16/2021, 2:18 PMpolite-lunch-97479
04/16/2021, 2:25 PMpolite-lunch-97479
04/16/2021, 2:29 PMsalmon-river-59357
04/16/2021, 2:42 PMpolite-lunch-97479
04/16/2021, 2:46 PMsalmon-river-59357
04/16/2021, 3:17 PMdocker/sdk testing codecept run -c tests/PyzTest/Zed/Product/codeception.yml
But this one does not
docker/sdk testing codecept run
Error:
In ErrorHandler.php line 83:
session_set_save_handler(): Cannot change save handler when headers already sentpolite-lunch-97479
04/17/2021, 3:56 AMob_start();
Let's see if it helps.salmon-river-59357
04/19/2021, 8:34 AMpolite-lunch-97479
04/19/2021, 8:43 AM$config[KernelConstants::RESOLVABLE_CLASS_NAMES_CACHE_ENABLED] = false;
in config_default-devtest.php.
Hoping that this will fix it.salmon-river-59357
04/19/2021, 10:32 AMpolite-lunch-97479
04/19/2021, 10:33 AMsilly-rose-85977
04/27/2021, 1:01 PMob_start to tests/_bootstrap.php resolved my issues as well. So it might be useful to either fix the underlying issue or at least add this small tip in the spryker documentation (maybe not everyone experiences that bug).
So its easier for people that are not in this slack server to start testing.
Also thanks @polite-lunch-97479 🙂