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