You are here

function MockOAuthDataStore::lookup_consumer in OAuth 1.0 6

Overrides OAuthDataStore::lookup_consumer

File

./OAuth_TestServer.php, line 67

Class

MockOAuthDataStore
A mock store for testing

Code

function lookup_consumer($consumer_key) {

  /*{{{*/
  if ($consumer_key == $this->consumer->key) {
    return $this->consumer;
  }
  return NULL;
}