Browse Source

fixin' the assertions

pull/606/head
qadan 9 years ago
parent
commit
922fe4a4cc
  1. 4
      tests/includes/utilities.inc

4
tests/includes/utilities.inc

@ -370,7 +370,7 @@ QUERY;
*/ */
public function assertObjectExists($pid) { public function assertObjectExists($pid) {
$object = islandora_object_load($pid); $object = islandora_object_load($pid);
$exists = $this->assertFedoraObject($pid); $exists = $this->assertFedoraObject($object);
$this->addResult($exists, "Object $pid exists in the repository."); $this->addResult($exists, "Object $pid exists in the repository.");
return $exists; return $exists;
} }
@ -386,7 +386,7 @@ QUERY;
*/ */
public function assertNoObjectExists($pid) { public function assertNoObjectExists($pid) {
$object = islandora_object_load($pid); $object = islandora_object_load($pid);
$exists = $this->assertFedoraObject($pid); $exists = $this->assertFedoraObject($object);
$this->addResult(!$exists, "Object $pid does not exist in the repository."); $this->addResult(!$exists, "Object $pid does not exist in the repository.");
return !$exists; return !$exists;
} }

Loading…
Cancel
Save