protected function FeaturesUserTestCase::_test_filter in Features 7
Same name and namespace in other branches
- 6 tests/features.test \FeaturesUserTestCase::_test_filter()
- 7.2 tests/features.test \FeaturesUserTestCase::_test_filter()
File
- tests/
features.test, line 100
Class
- FeaturesUserTestCase
- User permission component tests for Features
Code
protected function _test_filter($op = 'load') {
// So... relying on our own API functions to test is pretty lame.
// But these modules don't have APIs either. So might as well use
// the ones we've written for them...
features_include();
switch ($op) {
case 'load':
return features_filter_format_load('features_test');
case 'override':
$format = features_filter_format_load('features_test');
unset($format->filters['filter_url']);
filter_format_save($format);
break;
}
}