function it_should_edit_a_task(Client $client) { $task = ['dueDate' => time(), 'text' => 'bar']; $client->post(Argument::type('string'), ['json' => $task])->shouldBeCalled(); $this->edit(Argument::type('string'), $task); }
function it_search_things(Client $client) { $query = 'foo'; $client->get(Search::ENDPOINT, ['query' => ['query' => $query]]); $this->query($query); }
function it_should_set_a_value(Client $client) { $value = 'foo'; $client->post(Argument::type('string'), ['json' => ['value' => $value]])->shouldBeCalled(); $this->setValue(Argument::type('string'), Argument::type('string'), $value); }
function it_should_find_a_thread(Client $client) { $client->get(Argument::type('string'))->shouldBeCalled(); $this->find(Argument::type('string')); }
function it_should_create_a_comment(Client $client) { $message = 'foo'; $client->put(Argument::type('string'), ['form_params' => ['message' => $message]])->shouldBeCalled(); $this->create(Argument::type('string'), $message); }
function it_should_allow_to_specify_detail_for_all(Client $client) { $detailLevel = 'ALL'; $client->get(Argument::type('string'), ['query' => ['detailLevel' => $detailLevel]]); $this->all($detailLevel); }
function it_should_edit_a_stage(Client $client) { $name = 'bar'; $client->post(Argument::type('string'), ['json' => ['name' => $name]])->shouldBeCalled(); $this->edit(Argument::type('string'), $name); }
function it_should_edit_a_pipeline(Client $client) { $pipeline = ['name' => 'bar']; $client->post(Argument::type('string'), ['json' => $pipeline])->shouldBeCalled(); $this->edit(Argument::type('string'), $pipeline); }
function it_should_get_a_file_link(Client $client) { $client->get(Argument::type('string'), [], false)->shouldBeCalled(); $this->getLink(Argument::type('string')); }