Issue Bug Closed

#24365t3lib_cache_backend_RedisBackendTest causes t3lib_db_PreparedStatementTest tests to fail

Oliver Klee 12/18/10, 17:45 updated 03/29/11, 23:46

Description

When t3lib_cache_backend_RedisBackendTest is executed before t3lib_db_PreparedStatementTest, I get 4 test failures in t3lib_db_PreparedStatementTest. This is because t3lib_cache_backend_RedisBackendTest sets backupGlobals to true without adding the DB globals as an exception, wrecking the DB link.

As the t3lib_cache_backend_RedisBackendTest does not modify any globals anyway, we can just remove the backupGlobals option.

In addition, the patch unsets both members in the testcase, making life for the garbage collector a bit easier.

(issue imported from #M16779)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.