Adding some tests to an older Drupal 7 site and a few of the tests check for the presence or lack thereof of custom cache items.
Having this in settings.php seems to interfere with Simpletest using default database cache (this is included to settings.php as a local settings override):
$conf['cache_backends'][] = 'sites/all/modules/contrib/memcache/memcache.inc';
$conf['lock_inc'] = 'sites/all/modules/contrib/memcache/memcache-lock.inc';
$conf['memcache_stampede_protection'] = TRUE;
$conf['cache_default_class'] = 'MemCacheDrupal';
// The 'cache_form' bin must be assigned no non-volatile storage.
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
// Don't bootstrap the database when serving pages from the cache.
$conf['page_cache_without_database'] = TRUE;
$conf['page_cache_invoke_hooks'] = FALSE;
$conf['memcache_servers'] = array('cache:11211' => 'default');
Is there any global flag I can look at at this point to determine whether or not to add these overrides in?
I tried checking the $GLOBALS for a test id and drupal_valid_test_ua
but in both cases the memcache information was still used.
If I comment out the memcache settings, I can see the cache tables in simpletest are populated as expected. How can I get around this?
edit: looks like testing specific settings.php is not possible in 7.