public function ConfigurationTrackingTest::testTracking in Configuration Management 7
Tests that configurations get tracked.
File
- tests/
configuration.test, line 185 - Tests for Configuration Management
Class
Code
public function testTracking() {
$this
->trackConfigurations();
$types = array(
'field',
'filter',
'image',
'node',
'user_permission',
'user_role',
'taxonomy',
);
foreach ($types as $type) {
$this
->assertRaw(t('Tracking configurations for %type have been saved', array(
'%type' => $type,
)));
$this
->assertRaw(t('Wrote %type to filesystem', array(
'%type' => 'configuration.' . $type . '.inc',
)));
}
// Test that the options being tracked are no longer in list for stuff not
// being tracked.
$this
->drupalGet('admin/config/system/configuration/notracking');
foreach ($this->tracked as $field => $value) {
$this
->assertNoField($field);
}
}