protected function AgreementTestCase::configureAgreementSettings in Agreement 6.2
Same name and namespace in other branches
- 6 agreement.test \AgreementTestCase::configureAgreementSettings()
- 7.2 agreement.test \AgreementTestCase::configureAgreementSettings()
1 call to AgreementTestCase::configureAgreementSettings()
- AgreementTestCase::setUp in ./
agreement.test - Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
File
- ./
agreement.test, line 57 - Tests for Agreement module.
Class
- AgreementTestCase
- @file Tests for Agreement module.
Code
protected function configureAgreementSettings($settings) {
$this
->drupalGet('admin/settings/agreement');
$this
->assertResponse(200, t('User is allowed to access agreement settings page.'));
$this
->drupalPost('admin/settings/agreement', $settings, t('Save configuration'));
$this
->assertText(t('The configuration options have been saved'), t('Agreement settings saved'));
}