function VariableCheckTestCase::setUp in Variable Check 7
Enable module and store a good and bad value in the variables table.
Overrides DrupalWebTestCase::setUp
File
- ./
variablecheck.test, line 40  - Tests for Variablecheck.
 
Class
- VariableCheckTestCase
 - Functional tests for the variablecheck module.
 
Code
function setUp() {
  parent::setUp('variablecheck');
  // Add a known good serialized value to the variables table.
  variable_set('variablecheck_good', 'good value');
  // Add a known bad naugty value to the variables table.
  db_insert('variable')
    ->fields(array(
    'name' => 'variablecheck_bad',
    'value' => 'bad value',
  ))
    ->execute();
}