public function PatternsSystemTestCase::testVariables in Patterns 7.2
Same name and namespace in other branches
- 7 tests/system/system.test \PatternsSystemTestCase::testVariables()
File
- tests/system/system.test, line 62
- SimpleTests for the System component of Patterns.
Class
- PatternsSystemTestCase
- @file
SimpleTests for the System component of Patterns.
Code
public function testVariables() {
$this
->assertNotNull(variable_get('user_picture_file_size', NULL), 'user_picture_file_size should be set.');
$this
->assertNotNull(variable_get('user_register', NULL), 'user_register should be set.');
parent::runFile('variables.yaml', 'Modify variables values', $this->system_tests_dir);
$this
->assertIdentical(variable_get('user_picture_file_size', NULL), 800, 'user_picture_file_size should be set properly.');
$this
->assertIdentical(variable_get('user_register', NULL), 1, t('user_register variable should be set properly.'));
}