'Bearer '.$this->getValidToken($client), 'Content-Type' => 'application/merge-patch+json', ]; } // Runable Tests public function testUpdateWithValidToken(): void { $this->prepareTestProject(); $this->testInsert(['title' => 'Modified Title'], $this->getUri(1)); } public function testUpdateUnauthorized(): void { $this->prepareTestProject(); static::createClient()->request($this->getMethod(), $this->getUri(1)); $this->assertResponseStatusCodeSame(Response::HTTP_INTERNAL_SERVER_ERROR); } public function testUpdateWithInvalidToken(): void { $this->testInvalidToken($this->getUri(1), 'application/merge-patch+json'); } public function testUpdateNotFound(): void { $this->testOneNotFound(); } }