示例#1
0
 function it_should_create_a_field(Client $client)
 {
     $name = 'foo';
     $type = Field::TYPE_TEXT;
     $client->put(Argument::type('string'), ['form_params' => ['name' => $name, 'type' => $type]])->shouldBeCalled();
     $this->create($name, $type);
 }
示例#2
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);
 }
示例#3
0
 function it_should_create_a_stage(Client $client)
 {
     $name = 'foo';
     $client->put(Argument::type('string'), ['form_params' => ['name' => $name]])->shouldBeCalled();
     $this->create($name);
 }
示例#4
0
 function it_should_create_a_box(Client $client)
 {
     $client->put(Argument::type('string'), Argument::type('array'))->shouldBeCalled();
     $this->create(Argument::type('string'), ['name' => Argument::type('string')]);
 }
 function it_should_create_pipeline(Client $client)
 {
     $pipeline = ['name' => 'foo', 'description' => 'bar'];
     $client->put(Argument::type('string'), ['form_params' => $pipeline])->shouldBeCalled();
     $this->create($pipeline);
 }