e107inc / e107-test

For developmental use with e107 v2.
2 stars 2 forks source link

Banner plugin check succeeds when run alone, but fails while running all tests. #6

Closed CaMer0n closed 6 years ago

CaMer0n commented 6 years ago

I must have done something wrong. Not sure what is causing the failure of the 'prepare' statement in mySQL class, but only when all UnitTests are run.

Deltik commented 6 years ago

The tests are not isolated from each other because only one instance of e107 is spawned for each test suite, so tests can be affected by actions done in previous tests.

This issue is caused by e_db_mysql::$mySQLaccess getting set to NULL. How that is happening, I haven't figured out yet.

Deltik commented 6 years ago

This is fixed in e107inc/e107#3296.

CaMer0n commented 6 years ago

You're the best! Thank you! :1st_place_medal: :+1: