function DrupalTestCase::assertEqual in SimpleTest 6
Same name and namespace in other branches
- 5 drupal_test_case.php \DrupalTestCase::assertEqual()
- 6.2 drupal_web_test_case.php \DrupalTestCase::assertEqual()
- 7.2 drupal_web_test_case.php \DrupalTestCase::assertEqual()
- 7 drupal_web_test_case.php \DrupalTestCase::assertEqual()
Will trigger a pass if the two parameters have the same value only. Otherwise a fail.
Parameters
mixed $first Value to compare.: @param mixed $second Value to compare. @param string $message Message to display. @return boolean True on pass @access public
10 calls to DrupalTestCase::assertEqual()
- BlogAPIModuleTestCase::test_blog_API in tests/
blogapi_module.test - SearchMatchTest::_test_query_matching in tests/
search_match.test - Test the matching abilities of the engine.
- SearchMatchTest::_test_query_scores in tests/
search_match.test - Test the scoring abilities of the engine.
- StoryEditTest::testStoryEdit in tests/
story_edit.test - TaxonomyTermFunctions::testTermsFunctions in tests/
taxonomy.module.test
File
- ./
drupal_test_case.php, line 625
Class
- DrupalTestCase
- Test case for typical Drupal tests. Extends WebTestCase for comfortable browser usage but also implements all UnitTestCase methods, I wish WebTestCase would do this.
Code
function assertEqual($first, $second, $message = "%s") {
return $this
->assertExpectation(new EqualExpectation($first), $second, $message);
}