Browse Source

let's add in one last failsafe

pull/448/head
qadan 11 years ago
parent
commit
4ec2185d2d
  1. 5
      tests/islandora_web_test_case.inc

5
tests/islandora_web_test_case.inc

@ -434,6 +434,11 @@ class IslandoraWebTestCase extends DrupalWebTestCase {
* TRUE on success, FALSE on failure. * TRUE on success, FALSE on failure.
*/ */
public function deleteUserCreatedObjects($username) { public function deleteUserCreatedObjects($username) {
if ($username === $this->configuration['admin_user']) {
$this->fail("This function will under no circumstance attempt deletion of all objects owned by the configured Fedora admin user ({$this->configuration['admin_user']}), as this would irreparably damage the repository.", 'Islandora');
return FALSE;
}
$query = <<<QUERY $query = <<<QUERY
SELECT ?object FROM <#ri> WHERE SELECT ?object FROM <#ri> WHERE
{ {

Loading…
Cancel
Save