protected function FeaturesUserTestCase::_test_node in Features 7
Same name and namespace in other branches
- 6 tests/features.test \FeaturesUserTestCase::_test_node()
- 7.2 tests/features.test \FeaturesUserTestCase::_test_node()
File
- tests/
features.test, line 131
Class
- FeaturesUserTestCase
- User permission component tests for Features
Code
protected function _test_node($op = 'load') {
switch ($op) {
case 'load':
return node_type_get_type('features_test');
case 'override':
$type = node_type_get_type('features_test');
$type->description = 'Foo bar baz.';
$type->modified = TRUE;
node_type_save($type);
break;
}
}