You are here

protected function UserRestrictionsTestCase::addMask in User restrictions 7

1 call to UserRestrictionsTestCase::addMask()
UserRestrictionsTestCase::testAccess in ./user_restrictions.test

File

./user_restrictions.test, line 9
TestCase for the User restrictions module.

Class

UserRestrictionsTestCase
@file TestCase for the User restrictions module.

Code

protected function addMask($mask, $type, $status = 0) {
  db_insert('user_restrictions')
    ->fields(array(
    'mask' => $mask,
    'type' => $type,
    'status' => $status,
  ))
    ->execute();
}