public function it_return_true_if_host_exists(HttpClient $client, Container $ioc, Host $host) { $id = 1; $client->get('Hosts/Get/' . $id)->shouldBeCalled()->willReturn(Helper::contentResponse([Helper::fakeHost(), Helper::fakeHost()])); $ioc->make($this->fqnModel())->shouldBeCalled()->willReturn($host); $this->has($id)->shouldReturn(true); }