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_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_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_box(Client $client) { $client->post(Argument::type('string'), Argument::type('array'))->shouldBeCalled(); $this->edit(Argument::type('string'), ['name' => Argument::type('string')]); }
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); }