comparison core/modules/dblog/tests/src/Functional/DbLogResourceTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children af1871eacc83
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
64 $this->initAuthentication(); 64 $this->initAuthentication();
65 $url = Url::fromRoute('rest.dblog.GET', ['id' => $id, '_format' => static::$format]); 65 $url = Url::fromRoute('rest.dblog.GET', ['id' => $id, '_format' => static::$format]);
66 $request_options = $this->getAuthenticationRequestOptions('GET'); 66 $request_options = $this->getAuthenticationRequestOptions('GET');
67 67
68 $response = $this->request('GET', $url, $request_options); 68 $response = $this->request('GET', $url, $request_options);
69 $this->assertResourceErrorResponse(403, "The 'restful get dblog' permission is required.", $response); 69 $this->assertResourceErrorResponse(403, "The 'restful get dblog' permission is required.", $response, ['4xx-response', 'http_response'], ['user.permissions'], FALSE, FALSE);
70 70
71 // Create a user account that has the required permissions to read 71 // Create a user account that has the required permissions to read
72 // the watchdog resource via the REST API. 72 // the watchdog resource via the REST API.
73 $this->setUpAuthorization('GET'); 73 $this->setUpAuthorization('GET');
74 74