protected function AbstractOpignoSimpleUITest::assertEqual in Opigno 7.0
Add a string comparing the results for easier debugging. @override
Overrides DrupalTestCase::assertEqual
1 call to AbstractOpignoSimpleUITest::assertEqual()
- OpignoSimpleUIOGTest::testOGNodeUrls in modules/
opigno_simple_ui/ tests/ opigno_simple_ui.og.test - Simple UI overrides several URLs to more user-friendly, logical items. For example, an OG node will have a "Members" tab, and underneath that an "Add members" sub tab. However, the "Group" tab is removed.
File
- modules/
opigno_simple_ui/ tests/ opigno_simple_ui.test, line 30 - Abstract base class to simplify writing Opigno Simple UI test cases. Unit tests for Opigno Simple UI to check if overrides still apply against more recent modules. Check all form changes, path changes to see if we're correctly overriding them.
Class
- AbstractOpignoSimpleUITest
- @file Abstract base class to simplify writing Opigno Simple UI test cases. Unit tests for Opigno Simple UI to check if overrides still apply against more recent modules. Check all form changes, path changes to see if we're correctly overriding them.
Code
protected function assertEqual($first, $second, $message = '', $group = 'Other') {
return parent::assertEqual($first, $second, !empty($message) ? $message . t('[@first == @second]', array(
'@first' => var_export($first, TRUE),
'@second' => var_export($second, TRUE),
)) : '', $group);
}