|
12 | 12 | use OCP\AppFramework\Controller; |
13 | 13 | use OCP\AppFramework\Http; |
14 | 14 | use OCP\AppFramework\Http\Response; |
| 15 | +use OCP\Constants; |
15 | 16 | use OCP\IRequest; |
16 | 17 |
|
17 | 18 | class NotModifiedMiddlewareTest extends \Test\TestCase { |
@@ -44,13 +45,13 @@ public static function dataModified(): array { |
44 | 45 | [null, '"etag"', null, '', false], |
45 | 46 | ['etag', '"etag"', null, '', true], |
46 | 47 |
|
47 | | - [null, '', $now, $now->format(\DateTimeInterface::RFC7231), true], |
| 48 | + [null, '', $now, $now->format(Constants::DATE_RFC7231), true], |
48 | 49 | [null, '', $now, $now->format(\DateTimeInterface::ATOM), false], |
49 | | - [null, '', null, $now->format(\DateTimeInterface::RFC7231), false], |
| 50 | + [null, '', null, $now->format(Constants::DATE_RFC7231), false], |
50 | 51 | [null, '', $now, '', false], |
51 | 52 |
|
52 | 53 | ['etag', '"etag"', $now, $now->format(\DateTimeInterface::ATOM), true], |
53 | | - ['etag', '"etag"', $now, $now->format(\DateTimeInterface::RFC7231), true], |
| 54 | + ['etag', '"etag"', $now, $now->format(Constants::DATE_RFC7231), true], |
54 | 55 | ]; |
55 | 56 | } |
56 | 57 |
|
|
0 commit comments