Mercurial > hg > isophonics-drupal-site
comparison core/modules/dblog/tests/src/Functional/DbLogResourceTest.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 7a779792577d |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
60 // Get the ID of the written message. | 60 // Get the ID of the written message. |
61 $id = db_query_range("SELECT wid FROM {watchdog} WHERE type = :type ORDER BY wid DESC", 0, 1, [':type' => 'rest']) | 61 $id = db_query_range("SELECT wid FROM {watchdog} WHERE type = :type ORDER BY wid DESC", 0, 1, [':type' => 'rest']) |
62 ->fetchField(); | 62 ->fetchField(); |
63 | 63 |
64 $this->initAuthentication(); | 64 $this->initAuthentication(); |
65 $url = Url::fromRoute('rest.dblog.GET.' . static::$format, ['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); |
70 | 70 |