function NatWebTestCase::setDefaults in Node Auto Term [NAT] 7.2
File
- tests/
nat.test, line 66 - NAT module functionality tests.
Class
- NatWebTestCase
- Base class for all NAT webtest cases.
Code
function setDefaults() {
$config = _nat_variable_get();
$config['types'] = array(
'article' => array(
$this->nat_vocab1->vid => $this->nat_vocab1->vid,
$this->nat_vocab2->vid => $this->nat_vocab2->vid,
),
);
$config['delete'] = array(
'article' => TRUE,
);
$config['associations'] = array(
'article' => array(
$this->nat_vocab1->vid => array(
'name' => 'title',
),
$this->nat_vocab2->vid => array(
'name' => 'title',
),
),
);
variable_set('nat_config', $config);
}