You are here

public function AuthcacheP13nTestDatabaseKeyValueStore::tearDown in Authenticated User Page Caching (Authcache) 7.2

Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.

Overrides DrupalWebTestCase::tearDown

File

modules/authcache_p13n/tests/authcache_p13n.db-kv-store.test, line 44
Test case for database key-value store.

Class

AuthcacheP13nTestDatabaseKeyValueStore
Test database key-value store.

Code

public function tearDown() {
  $rows = db_select('authcache_p13n_key_value', 'kv')
    ->fields('kv')
    ->execute()
    ->fetchAll();
  $this
    ->assertEqual(0, count($rows), 'Key-value database table is empty');
  parent::tearDown();
}