You are here

class AuthcacheP13nTestFragmentAccessStub in Authenticated User Page Caching (Authcache) 7.2

Stub fragment access checker.

Hierarchy

Expanded class hierarchy of AuthcacheP13nTestFragmentAccessStub

File

modules/authcache_p13n/tests/authcache_p13n.stub.inc, line 398
Stub classes for testing.

View source
class AuthcacheP13nTestFragmentAccessStub implements AuthcacheP13nFragmentAccessInterface {
  protected $observer;

  /**
   * Construct new stub class.
   */
  public function __construct($observer) {
    $this->observer = $observer;
  }

  /**
   * {@inheritdoc}
   */
  public function check($account, $key, $subject, $context) {
    return $this->observer
      ->record($this, __FUNCTION__, func_get_args());
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AuthcacheP13nTestFragmentAccessStub::$observer protected property
AuthcacheP13nTestFragmentAccessStub::check public function Check whether the user has access to the given fragment. Overrides AuthcacheP13nFragmentAccessInterface::check
AuthcacheP13nTestFragmentAccessStub::__construct public function Construct new stub class.