File
 
   - core/modules/system/tests/system.test, line 1011
- Tests for system.module.
Class
  
  - AccessDeniedTestCase 
- Tests custom access denied functionality.
Code
function test403PathOnSystemForm() {
  $this->backdropLogin($this->admin_user);
  $edit = array(
    'title' => $this->randomName(10),
    'body' => array(LANGUAGE_NONE => array(array('value' => $this->randomName(100)))),
    'path' => array(
      'alias' => $this->randomName(8),
    ),
  );
  $node = $this->backdropCreateNode($edit);
    $this->backdropPost('admin/config/system/site-information', array('site_403' => $node->path['alias']), t('Save configuration'));
  $this->backdropGet('admin/config/system/site-information');
  $this->assertRaw($node->path['alias'], t("Found the alias for the custom 403 page path."));
    $node->title = $this->randomName(7);
  node_save($node);
  $this->backdropGet('admin/config/system/site-information');
  $this->assertRaw($node->path['alias'], t("Found the alias for the custom 403 page path after it has been changed."));
}