function NotificationsTemplatesTests::compareTexts in Notifications 7
Same name and namespace in other branches
- 6.4 tests/notifications_templates.test \NotificationsTemplatesTests::compareTexts()
- 6 tests/notifications_templates.test \NotificationsTemplatesTests::compareTexts()
- 6.2 tests/notifications_templates.test \NotificationsTemplatesTests::compareTexts()
- 6.3 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 217
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 '';
}
}