You are here

protected function ForumAccessBaseTestCase::isFieldChecked in Forum Access 7

1 call to ForumAccessBaseTestCase::isFieldChecked()
ForumAccessBaseTestCase::checkForum in tests/forum_access_test_base.php
Check the set of permissions in one forum.

File

tests/forum_access_test_base.php, line 345
Base class with auxiliary functions for forum access module tests.

Class

ForumAccessBaseTestCase
Base test class for the Forum Access module.

Code

protected function isFieldChecked($id) {
  $elements = $this
    ->xpath('//input[@id=:id]', array(
    ':id' => $id,
  ));
  return isset($elements[0]) && !empty($elements[0]['checked']);
}