/**
  * @return void
  */
 public function testUpdate()
 {
     $this->beginDatabaseTransaction();
     /** @var Model $model */
     $this->assertNotNull($model = factory(Model::class)->make());
     $model->{Model::FIELD_FIRST_NAME} = 'Jane';
     $model->saveOrFail();
     $idx = $model->getKey();
     $body = $this->getUpdateRequestBody($idx);
     /** @var Response $response */
     $response = $this->callPatch($this->admin(), $idx, $body);
     $this->assertResponseOk();
     $this->assertNotEmpty($resource = json_decode($response->getContent())->data);
     $this->assertNotNull($model = Model::find($resource->id));
     $this->assertEquals('John', $model->{Model::FIELD_FIRST_NAME});
 }