tests: Add some tests for the Zotlabs\Magic module.
Only tests the delegate functionality at the moment.
This patch also includes some minor fixes to the Magic module, triggered by the tests with empty destination URL's.
You don't pay for Framagit, because it is funded by donations to Framasoft. Our not-for-profit needs any support you can afford: support.framasoft.org.
Framagit est gratuit car il est financé par les dons à Framasoft. Notre association a besoin de votre soutien sur soutenir.framasoft.org.
Only tests the delegate functionality at the moment.
This patch also includes some minor fixes to the Magic module, triggered by the tests with empty destination URL's.