public function PatternsSystemTestCase::testVariables in Patterns 7
Same name and namespace in other branches
- 7.2 tests/system/system.test \PatternsSystemTestCase::testVariables()
File
- tests/system/system.test, line 71
- SimpleTests for the System component of Patterns.
Class
- PatternsSystemTestCase
- @file
SimpleTests for the System component of Patterns.
Code
public function testVariables() {
$this
->assertNotIdentical(variable_get('user_pictures', NULL), NULL, t('user_pictures variable should be set.'));
$this
->assertIdentical(variable_get('votingapi_anonymous_window', NULL), NULL, t('votingapi_anonymous_window variable should not be set.'));
$this
->assertIdentical(variable_get('fivestar_widget', NULL), NULL, t('fivestar_widget variable should not be set.'));
parent::runFile('variables.yaml', 'Create and delete variables', $this->system_tests_dir);
$this
->assertUniqueText(t('Variable(s) votingapi_anonymous_window, fivestar_widget updated.'), t('The votingapi_anonymous_window, fivestar_widget variables should get updated.'));
$this
->assertUniqueText(t('Variable(s) user_pictures updated.'), t('The user_pitures variabcle should get updated.'));
$this
->assertIdentical(variable_get('user_pictures', NULL), NULL, t('user_pictures variable should not be set.'));
$this
->assertIdentical(variable_get('votingapi_anonymous_window', NULL), 3600, t('votingapi_anonymous_window variable should be set properly.'));
$this
->assertIdentical(variable_get('fivestar_widget', NULL), 'sites/all/modules/fivestar/widgets/craft/craft.css', t('fivestar_widget variable should be set properly.'));
}