You are here

protected function AgreementTestCase::configureAgreementSettings in Agreement 6

Same name and namespace in other branches
  1. 6.2 agreement.test \AgreementTestCase::configureAgreementSettings()
  2. 7.2 agreement.test \AgreementTestCase::configureAgreementSettings()
2 calls to AgreementTestCase::configureAgreementSettings()
AgreementCustomUnprivilegedUserTestCase::testAgreementDestination in ./agreement.test
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 49
Tests for the Agreement module

Class

AgreementTestCase
@file Tests for the 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'));
}