function it_should_be_able_to_hit_search_engines_endpoint(Connection $connection) { $expectedArgs = ['project_id' => 50]; $connection->makeGetRequest('AdminStatusGetListProjectSearchEngines', $expectedArgs)->shouldBeCalled()->willReturn([]); $this->getListProjectSearchEngines(50)->shouldBeArray(); }
function it_should_be_able_to_hit_the_project_optimization_get_list_content_detail_endpoint(Connection $connection) { $expectedArgs = ['crawl_id' => '1', 'project_id' => '2', 'limit' => '10', 'offset' => '1', 'sort' => '-must-have', 'type' => 'proof', 'show' => 'keywords']; $connection->makeGetRequest('ProjectOptimizationGetListContentDetail', $expectedArgs)->shouldBeCalled()->willReturn([]); $this->getListContentDetail(1, 2, 10, 1, '-must-have', 'proof', 'keywords')->shouldBeArray(); }