示例#1
0
 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);
 }
示例#2
0
 function it_search_things(Client $client)
 {
     $query = 'foo';
     $client->get(Search::ENDPOINT, ['query' => ['query' => $query]]);
     $this->query($query);
 }
示例#3
0
 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);
 }
示例#4
0
 function it_should_find_a_thread(Client $client)
 {
     $client->get(Argument::type('string'))->shouldBeCalled();
     $this->find(Argument::type('string'));
 }
示例#5
0
 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);
 }
示例#7
0
 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);
 }
示例#9
0
 function it_should_get_a_file_link(Client $client)
 {
     $client->get(Argument::type('string'), [], false)->shouldBeCalled();
     $this->getLink(Argument::type('string'));
 }