protected function BmTestBase::assertNoOptionsSelected in Backup and Migrate 7.3
Confirm that a specific selector does not have items selected.
1 call to BmTestBase::assertNoOptionsSelected()
- BmTestBasics::testQuickBackup in tests/
BmTestBasics.test - Verify the main page has the expected form, then run a basic backup.
File
- tests/
BmTestBase.test, line 90 - Shared functionality to make the rest of the tests simpler.
Class
- BmTestBase
- Base class for testing a module's custom tags.
Code
protected function assertNoOptionsSelected($id, $message = '') {
$elements = $this
->xpath('//select[@id=:id]//option[@selected="selected"]', array(
':id' => $id,
));
return $this
->assertTrue(!isset($elements[0]), $message ? $message : t('Field @id does not have any selected items.', array(
'@id' => $id,
)), t('Browser'));
}