summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-08 23:31:45 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-08 23:31:45 +0000
commit9ad64a3a50f78ecc667e5f2b499ed94bc29b2030 (patch)
treeaeda5ed384c53b95a74a4e0fedcdb89ddd61c755
parent8339e790ed3cb1f90b359a53b05cd6670cfc6f0a (diff)
downloadbrdo-9ad64a3a50f78ecc667e5f2b499ed94bc29b2030.tar.gz
brdo-9ad64a3a50f78ecc667e5f2b499ed94bc29b2030.tar.bz2
#705310 follow-up by Berdir: Remove tests for no longer existing code.
-rw-r--r--modules/dblog/dblog.test21
1 files changed, 0 insertions, 21 deletions
diff --git a/modules/dblog/dblog.test b/modules/dblog/dblog.test
index cb06034f9..0cfca13bf 100644
--- a/modules/dblog/dblog.test
+++ b/modules/dblog/dblog.test
@@ -214,27 +214,6 @@ class DBLogTestCase extends DrupalWebTestCase {
// We need to POST here to invoke batch_process() in the internal browser.
$this->drupalPost('user/' . $user->uid . '/cancel', array('user_cancel_method' => 'user_cancel_reassign'), t('Cancel account'));
- // Count rows that have uids for the user.
- $count = db_query('SELECT COUNT(wid) FROM {watchdog} WHERE uid = :uid', array(':uid' => $user->uid))->fetchField();
- $this->assertTrue($count == 0, t('DBLog contains @count records for @name', array('@count' => $count, '@name' => $user->name)));
-
- // Count rows in watchdog that previously related to the deleted user.
- $select = db_select('watchdog');
- $select->addExpression('COUNT(*)');
- $select->condition('uid', 0);
- if ($ids) {
- $select->condition('wid', $ids, 'IN');
- }
- $count_after = $select->execute()->fetchField();
- $this->assertTrue($count_after == $count_before, t('DBLog contains @count records for @name that now have uid = 0', array('@count' => $count_before, '@name' => $user->name)));
- unset($ids);
- // Fetch row ids in watchdog that relate to the user.
- $result = db_query('SELECT wid FROM {watchdog} WHERE uid = :uid', array(':uid' => $user->uid));
- foreach ($result as $row) {
- $ids[] = $row->wid;
- }
- $this->assertTrue(!isset($ids), t('DBLog contains no records for @name', array('@name' => $user->name)));
-
// View the dblog report.
$this->drupalGet('admin/reports/dblog');
$this->assertResponse(200);