From 0bfeaa45594121fb89b88e4890fb2a1288a51ba6 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 14 Dec 2010 13:23:09 -0800 Subject: [PATCH] AtomPub tests: fix for atom post check --- tests/atompub/atompub_test.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/atompub/atompub_test.php b/tests/atompub/atompub_test.php index cc1f93b44c..389fd12c41 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"; -- 2.39.5