You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it might be because a missingTemplate Exception is thrown (deliberately), which starts this database log plugin, but it's looking for a test-log datasource configuration: Cake\Datasource\Exception\MissingDatasourceConfigException: The datasource configuration "test_database_log" was not found.
That config doesn't seem to exist.
How can we fix that, how can we ensure the test_database_log config does indeed exist?
We could add the test_database_log connection in your bootstrap.php, just like we do with database_log, but I'm not sure that is the way to go. Do you have any insight on this? Except Disabling databaselog for testing https://github.com/dereuromark/CakePHP-DatabaseLog/tree/master/docs#disabling-for-tests. :)
The text was updated successfully, but these errors were encountered:
Hi!
I use this plugin and a slightly altered version of the cakephp-app template and the
testMissingTemplateInDebug()
https://github.com/cakephp/app/blob/master/tests/TestCase/Controller/PagesControllerTest.php#L75 test fails on me.I think it might be because a missingTemplate Exception is thrown (deliberately), which starts this database log plugin, but it's looking for a test-log datasource configuration:
Cake\Datasource\Exception\MissingDatasourceConfigException: The datasource configuration "test_database_log" was not found.
That config doesn't seem to exist.
How can we fix that, how can we ensure the test_database_log config does indeed exist?
We could add the test_database_log connection in your bootstrap.php, just like we do with database_log, but I'm not sure that is the way to go. Do you have any insight on this? Except Disabling databaselog for testing https://github.com/dereuromark/CakePHP-DatabaseLog/tree/master/docs#disabling-for-tests. :)
The text was updated successfully, but these errors were encountered: