function NotificationsTemplatesTests::compareTexts in Notifications 6.2
Same name and namespace in other branches
- 6.4 tests/notifications_templates.test \NotificationsTemplatesTests::compareTexts()
- 6 tests/notifications_templates.test \NotificationsTemplatesTests::compareTexts()
- 6.3 tests/notifications_templates.test \NotificationsTemplatesTests::compareTexts()
- 7 tests/notifications_templates.test \NotificationsTemplatesTests::compareTexts()
2 calls to NotificationsTemplatesTests::compareTexts()
- NotificationsTemplatesTests::diffTexts in tests/
notifications_templates.test - NotificationsTemplatesTests::testNotificationsTemplates in tests/
notifications_templates.test - Play with creating, retrieving, deleting a pair subscriptions
File
- tests/
notifications_templates.test, line 203
Class
- NotificationsTemplatesTests
- Class for testing notifications templates and message composition.
Code
function compareTexts($text1, $text2) {
if ($diff = $this
->diffTexts($text1, $text2)) {
return theme('table', array(), $diff);
}
else {
return '';
}
}