You are here

public static function HookStub::once in Authenticated User Page Caching (Authcache) 7.2

Returns a verifyier which succeeds when a hook was invoked exactly once.

55 calls to HookStub::once()
AuthcacheAjaxTestCase::testAjaxAssembly in modules/authcache_ajax/tests/authcache_ajax.test
Cover authcache_ajax assembly and partial.
AuthcacheAjaxTestCase::testAjaxFragment in modules/authcache_ajax/tests/authcache_ajax.test
Cover theme_authcache_p13n_fragment__authcache_ajax().
AuthcacheAjaxTestCase::testAjaxSetting in modules/authcache_ajax/tests/authcache_ajax.test
Cover theme_authcache_p13n_setting__authcache_ajax().
AuthcacheBackendKeyManagementTestCase::testKeyRenewDuringLogin in tests/authcache.backend.test
Call hook_authcache_backend_key_set during login and logout.
AuthcacheBackendKeyManagementTestCase::testKeyRenewDuringLogout in tests/authcache.backend.test
Call hook_authcache_backend_key_set during logout.

... See full list

File

tests/HookStub.inc, line 258
Defines some helper classes for stubbing and recording hook invocations.

Class

HookStub
Static methods for keeping track of enabled hooks and invocations.

Code

public static function once() {
  return static::times(1);
}