diff options
author | Dries Buytaert <dries@buytaert.net> | 2011-02-28 20:36:37 -0500 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2011-02-28 20:36:37 -0500 |
commit | 768208f8ddb2d03bc1e6d484ecac6e78c5fa75a8 (patch) | |
tree | f7f428f07922e354fe47f169605e67d581c5f1ed /modules/poll | |
parent | 540ee5f4400e33bb202835b61bdefc7f7a280d82 (diff) | |
download | brdo-768208f8ddb2d03bc1e6d484ecac6e78c5fa75a8.tar.gz brdo-768208f8ddb2d03bc1e6d484ecac6e78c5fa75a8.tar.bz2 |
- Patch #1076394 by pillarsdotnet: improved test code.
Diffstat (limited to 'modules/poll')
-rw-r--r-- | modules/poll/poll.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/poll/poll.test b/modules/poll/poll.test index 3ac5aefc2..6fabf9567 100644 --- a/modules/poll/poll.test +++ b/modules/poll/poll.test @@ -652,7 +652,7 @@ class PollTokenReplaceTestCase extends PollTestCase { foreach ($tests as $input => $expected) { $output = token_replace($input, array('node' => $poll), array('language' => $language)); - $this->assertFalse(strcmp($output, $expected), t('Sanitized poll token %token replaced.', array('%token' => $input))); + $this->assertEqual($output, $expected, t('Sanitized poll token %token replaced.', array('%token' => $input))); } // Generate and test unsanitized tokens. @@ -660,7 +660,7 @@ class PollTokenReplaceTestCase extends PollTestCase { foreach ($tests as $input => $expected) { $output = token_replace($input, array('node' => $poll), array('language' => $language, 'sanitize' => FALSE)); - $this->assertFalse(strcmp($output, $expected), t('Unsanitized poll token %token replaced.', array('%token' => $input))); + $this->assertEqual($output, $expected, t('Unsanitized poll token %token replaced.', array('%token' => $input))); } } } |