You are here

function PrivatemsgAPITestCase::getMessageFromSubject in Privatemsg 7.2

Same name and namespace in other branches
  1. 6.2 privatemsg.test \PrivatemsgAPITestCase::getMessageFromSubject()
  2. 6 tests/privatemsgapi.test \PrivatemsgAPITestCase::getMessageFromSubject()
  3. 7 privatemsg.test \PrivatemsgAPITestCase::getMessageFromSubject()
2 calls to PrivatemsgAPITestCase::getMessageFromSubject()
PrivatemsgAPITestCase::testPrivatemsgApiNewThread in ./privatemsg.test
PrivatemsgAPITestCase::testPrivatemsgApiReply in ./privatemsg.test

File

./privatemsg.test, line 1392
Test file for privatemsg.module

Class

PrivatemsgAPITestCase
Privatemsg API tests

Code

function getMessageFromSubject($subject) {
  return db_query("SELECT * FROM {pm_message} WHERE subject = :subject", array(
    ':subject' => $subject,
  ))
    ->fetchObject();
}