public function AgreementCustomFrequencyTest::testInvalidCustomFrequency in Agreement 3.0.x
Asserts invalid custom frequency.
File
- tests/
src/ Functional/ AgreementCustomFrequencyTest.php, line 37
Class
- AgreementCustomFrequencyTest
- Tests custom frequencies.
Namespace
Drupal\Tests\agreement\FunctionalCode
public function testInvalidCustomFrequency() {
$this
->drupalLogin($this
->createPrivilegedUser());
$this
->drupalGet('/admin/config/people/agreement/manage/default');
$edit = [
'settings[frequency]' => '-0.25',
];
$this
->submitForm($edit, 'Save');
$this
->getSession()
->getPage()
->hasContent('Only -1 is an acceptable negative frequency.');
}