diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-09-30 15:08:10 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-09-30 15:08:10 -0700 |
commit | 25a927031c218d7bd49da1bad5f97bef690a7518 (patch) | |
tree | f60cbcc9d9aabc492193442ab555dce753bd1fc6 /modules/simpletest | |
parent | e120a6e886a40eaf135f6032aa47e3eeeb58b3af (diff) | |
download | brdo-25a927031c218d7bd49da1bad5f97bef690a7518.tar.gz brdo-25a927031c218d7bd49da1bad5f97bef690a7518.tar.bz2 |
Issue #1289364 by swentel: Fixed SchemaCache generates empty cid.
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/tests/cache.test | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/simpletest/tests/cache.test b/modules/simpletest/tests/cache.test index 954f57596..d292fa661 100644 --- a/modules/simpletest/tests/cache.test +++ b/modules/simpletest/tests/cache.test @@ -151,14 +151,22 @@ class CacheSavingCase extends CacheTestCase { $this->assertTrue(isset($cache->data) && $cache->data == $test_object, t('Object is saved and restored properly.')); } - /* + /** * Check or a variable is stored and restored properly. - **/ + */ function checkVariable($var) { cache_set('test_var', $var, 'cache'); $cache = cache_get('test_var', 'cache'); $this->assertTrue(isset($cache->data) && $cache->data === $var, t('@type is saved and restored properly.', array('@type' => ucfirst(gettype($var))))); } + + /** + * Test no empty cids are written in cache table. + */ + function testNoEmptyCids() { + $this->drupalGet('user/register'); + $this->assertFalse(cache_get(''), t('No cache entry is written with an empty cid.')); + } } /** |