You are here

function PrivatemsgEMailNotifyTestCase::getCurrentThreadId in Privatemsg 7.2

Same name and namespace in other branches
  1. 6.2 pm_email_notify/pm_email_notify.test \PrivatemsgEMailNotifyTestCase::getCurrentThreadId()

Extracts the current thread_id from the URl.

Return value

Thread id of the current page.

6 calls to PrivatemsgEMailNotifyTestCase::getCurrentThreadId()
PrivatemsgEMailNotifyTestCase::testAlwaysConfiguration in pm_email_notify/pm_email_notify.test
Test Always configuration.
PrivatemsgEMailNotifyTestCase::testNeverConfiguration in pm_email_notify/pm_email_notify.test
Test that no mails are sent when
PrivatemsgEMailNotifyTestCase::testOnlyUserConfiguration in pm_email_notify/pm_email_notify.test
Test Always configuration.
PrivatemsgEMailNotifyTestCase::testShowSenderMail in pm_email_notify/pm_email_notify.test
Test the "author's email address as notification sender" feature.
PrivatemsgEMailNotifyTestCase::testThreadConfiguration in pm_email_notify/pm_email_notify.test
Test Always configuration.

... See full list

File

pm_email_notify/pm_email_notify.test, line 450
Test file for pm_email_notify.module

Class

PrivatemsgEMailNotifyTestCase
@file Test file for pm_email_notify.module

Code

function getCurrentThreadId() {
  preg_match('|messages\\/view\\/([0-9]+)|', $this
    ->getURL(), $matches);
  return $matches[1];
}