function it_can_get_companies_by_domain($client) { $domain = 'example.com'; $url = $this->buildUrl("/companies/v2/companies/domain/{$domain}"); $client->get($url, ['headers' => $this->headers])->shouldBeCalled()->willReturn('response'); $this->getByDomain($domain)->shouldReturn('response'); }