function DrupalTestCase::assertEqual in SimpleTest 5
Same name and namespace in other branches
- 6.2 drupal_web_test_case.php \DrupalTestCase::assertEqual()
- 6 drupal_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
8 calls to DrupalTestCase::assertEqual()
- 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.
- TaxonomyTermFunctions::testTermsFunctions in tests/
taxonomy.module.test - TaxonomyTermFunctions::testTermsFunctionsSingleHierarchy in tests/
taxonomy.module.test - TaxonomyTestNodeApi::testTaxonomyNode in tests/
taxonomy.module.test
File
- ./
drupal_test_case.php, line 501
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);
}