summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-12-14 13:23:09 -0800
committerBrion Vibber <brion@pobox.com>2010-12-14 13:23:09 -0800
commit0bfeaa45594121fb89b88e4890fb2a1288a51ba6 (patch)
tree1defe49f0cc5b47a7f1745d186649bcae2f9c065
parent82a9560a2d11f6b9355b26f23fb1bfe224d60bfd (diff)
AtomPub tests: fix for atom post check
-rw-r--r--tests/atompub/atompub_test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/atompub/atompub_test.php b/tests/atompub/atompub_test.php
index cc1f93b44..389fd12c4 100644
--- a/tests/atompub/atompub_test.php
+++ b/tests/atompub/atompub_test.php
@@ -185,7 +185,7 @@ class AtomPubClient
throw new Exception('Bad Atom entry: XML is not well formed.');
}
- $activity = new Activity($dom);
+ $activity = new Activity($dom->documentRoot);
return true;
}
}
@@ -283,6 +283,7 @@ echo "ok\n";
echo "Refetching deleted notice to confirm it's gone... ";
try {
$body = $notice->get();
+ var_dump($body);
die("ERROR: notice should be gone now.\n");
} catch (Exception $e) {
echo "ok\n";