protected function AuthcacheFlagTest::createFlag in Authenticated User Page Caching (Authcache) 7.2
Helper to create a flag from an array of data and clear caches etc.
See also
FlagTestCaseBase::createFlag()
1 call to AuthcacheFlagTest::createFlag()
- AuthcacheFlagTest::setUp in modules/
authcache_flag/ authcache_flag.test - Sets up a Drupal site for running functional and integration tests.
File
- modules/
authcache_flag/ authcache_flag.test, line 200 - Test cases for the Authcache Flag module.
Class
- AuthcacheFlagTest
- Tests for markup substitution.
Code
protected function createFlag($flag_data) {
$flag = flag_flag::factory_by_array($flag_data);
return $this
->saveFlag($flag);
}