AtomPub tests: fix for atom post check
This commit is contained in:
parent
82a9560a2d
commit
0bfeaa4559
|
@ -185,7 +185,7 @@ class AtomPubClient
|
||||||
throw new Exception('Bad Atom entry: XML is not well formed.');
|
throw new Exception('Bad Atom entry: XML is not well formed.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$activity = new Activity($dom);
|
$activity = new Activity($dom->documentRoot);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -283,6 +283,7 @@ echo "ok\n";
|
||||||
echo "Refetching deleted notice to confirm it's gone... ";
|
echo "Refetching deleted notice to confirm it's gone... ";
|
||||||
try {
|
try {
|
||||||
$body = $notice->get();
|
$body = $notice->get();
|
||||||
|
var_dump($body);
|
||||||
die("ERROR: notice should be gone now.\n");
|
die("ERROR: notice should be gone now.\n");
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo "ok\n";
|
echo "ok\n";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user