protected function AuthcacheTestAdminWidgets::assertStub in Authenticated User Page Caching (Authcache) 7.2
Test whether the given stub passes the invocation verifier.
7 calls to AuthcacheTestAdminWidgets::assertStub()
- AuthcacheTestAdminWidgets::testDurationSelect in tests/
authcache.widget.test - Test duration select widget.
- AuthcacheTestAdminWidgets::testDurationSelectDefaultValue in tests/
authcache.widget.test - Test duration select widget.
- AuthcacheTestAdminWidgets::testDurationSelectSubmit in tests/
authcache.widget.test - Test duration select widget.
- AuthcacheTestAdminWidgets::testRoleRestrictWidget in tests/
authcache.widget.test - Test role restrict widget.
- AuthcacheTestAdminWidgets::testRoleRestrictWidgetDefaultValue in tests/
authcache.widget.test - Test role restrict widget with default value.
File
- tests/
authcache.widget.test, line 69 - Test cases for pluggable cache backends.
Class
- AuthcacheTestAdminWidgets
- Cover authcache module.
Code
protected function assertStub(HookStubProxy $stub, $verifier, $message = NULL) {
$result = $stub
->verify($verifier, $error);
if (!$message) {
$message = t('Verify invocation of hook @hook.', array(
'@hook' => $stub
->hookname(),
));
}
if (!$result && is_string($error)) {
$message .= ' ' . $error;
}
$this
->assertTrue($result, $message);
}