Ejemplo n.º 1
0
 /** @test */
 public function update()
 {
     $newCompanyResponse = $this->createCompany();
     $id = $newCompanyResponse['companyId'];
     $companyDescription = 'A far better description than before';
     $properties = ['name' => 'description', 'value' => $companyDescription];
     $response = $this->companies->update($id, $properties);
     $this->assertEquals(200, $response->getStatusCode());
     $this->assertEquals($id, $response['companyId']);
     $this->assertEquals($companyDescription, $response['properties']['description']['value']);
 }