/** @test */ public function it_updates_a_property() { $data = ['key' => 'test_property2', 'required' => false]; $response = $this->call('PUT', 'api/properties/1', [], [], [], $this->headers, json_encode($data)); $content = json_decode($response->getContent()); $updatedProperty = \SevenShores\Kraken\Property::find(1); $this->assertEquals(200, $response->getStatusCode()); $this->assertEquals($data['key'], $content->key); $this->assertEquals($data['required'], $updatedProperty->required); }