From 59dd17a6787982dd68e4db1a21002256cb1a3cc6 Mon Sep 17 00:00:00 2001 From: Frank Febbraro <frankfebbraro@gmail.com> Date: Wed, 7 Dec 2011 21:04:57 -0500 Subject: [PATCH] Fixed user unit test --- tests/feeds_processor_user.test | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/feeds_processor_user.test b/tests/feeds_processor_user.test index 0e486033..bec9dd09 100644 --- a/tests/feeds_processor_user.test +++ b/tests/feeds_processor_user.test @@ -73,17 +73,16 @@ class FeedsCSVtoUsersTest extends FeedsWebTestCase { $this->importFile('user_import', $this->absolutePath() . '/tests/feeds/users.csv'); // Assert result. - $this->assertText('Created 4 users'); + $this->assertText('Created 3 users'); // 1 user has an invalid email address, all users should be assigned // the manager role. - $this->assertText('Failed importing 1 user'); + $this->assertText('Failed importing 2 user'); $this->drupalGet('admin/people'); $this->assertText('Morticia'); $this->assertText('Fester'); $this->assertText('Gomez'); - $this->assertText('Pugsley'); $count = db_query("SELECT count(*) FROM {users_roles} WHERE rid = :rid", array(':rid' => $manager_rid))->fetchField(); - $this->assertEqual($count, 4, t('All imported users were assigned the manager role.')); + $this->assertEqual($count, 3, t('All imported users were assigned the manager role.')); $count = db_query("SELECT count(*) FROM {users_roles} WHERE rid = :rid", array(':rid' => $admin_rid))->fetchField(); $this->assertEqual($count, 0, t('No imported user was assigned the administrator role.')); -- GitLab