Hi,
I have some problem configuring a test with wireHttp involved.
This code works ok on a real template (called testPageController.php). I have two local sites to make the test.
public function getOtherSiteConnectionTest() {
$config = wire("config");
$http = new WireHttp();
$chemin = "http://" . $config->afmqOtherSite . " /en/afmq-services/hello/";
$response = $http->get($chemin);
$expected = "hello";
$actual = $response;
Assert::equal($expected, $actual);
}
Nette Tester tells me it has forgotten to make the test which means a misconfiguration of a sort. What I did wrong?