protected function TermMergeTermMergeWebTestCase::termMergeResistanceAssert in Term Merge 7
Supportive function for the main test "testTermMergeResistance".
Assert that each term of the array $terms is available.
Parameters
array $terms: Array of taxonomy terms objects
string $message: Assertion message to be shown on the test results page
1 call to TermMergeTermMergeWebTestCase::termMergeResistanceAssert()
- TermMergeTermMergeWebTestCase::testTermMergeResistance in ./
term_merge.test - Test all cases for potentially "buggy" input.
File
- ./
term_merge.test, line 831 - Test the Term Merge module.
Class
- TermMergeTermMergeWebTestCase
- Test the functionality of Term Merge module.
Code
protected function termMergeResistanceAssert($terms, $message) {
foreach ($terms as $term) {
$this
->drupalGet('taxonomy/term/' . $term->tid);
$this
->assertResponse(200, $message);
}
}