From: Brion Vibber Date: Tue, 14 Dec 2010 21:23:09 +0000 (-0800) Subject: AtomPub tests: fix for atom post check X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0bfeaa45594121fb89b88e4890fb2a1288a51ba6;hp=82a9560a2d11f6b9355b26f23fb1bfe224d60bfd;p=quix0rs-gnu-social.git AtomPub tests: fix for atom post check --- 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";