예제 #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_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);
 }
예제 #3
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);
 }
예제 #4
0
 function it_should_edit_a_box(Client $client)
 {
     $client->post(Argument::type('string'), Argument::type('array'))->shouldBeCalled();
     $this->edit(Argument::type('string'), ['name' => Argument::type('string')]);
 }
예제 #5
0
 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);
 }