diff options
author | Pytal <24800714+Pytal@users.noreply.github.com> | 2021-06-23 09:56:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-23 09:56:28 -0700 |
commit | 9ed379da22e4dd0b54fed4241798aec47d6e3f2c (patch) | |
tree | 279fb154fc813240ba34fa4cbbe525e9627e76b5 /tests/lib | |
parent | 19a84512d688ae899f0f8efc37b89d2a9676cc48 (diff) | |
parent | 6d5cfe0c66f7010d552f0aa234a13c2e91a933bd (diff) | |
download | nextcloud-server-9ed379da22e4dd0b54fed4241798aec47d6e3f2c.tar.gz nextcloud-server-9ed379da22e4dd0b54fed4241798aec47d6e3f2c.zip |
Merge pull request #27635 from nextcloud/fix/datetime-constants
Fix usage of DateTime constants
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/AppFramework/Middleware/NotModifiedMiddlewareTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/AppFramework/Middleware/NotModifiedMiddlewareTest.php b/tests/lib/AppFramework/Middleware/NotModifiedMiddlewareTest.php index 89ae75bcac2..c62384302fb 100644 --- a/tests/lib/AppFramework/Middleware/NotModifiedMiddlewareTest.php +++ b/tests/lib/AppFramework/Middleware/NotModifiedMiddlewareTest.php @@ -61,13 +61,13 @@ class NotModifiedMiddlewareTest extends \Test\TestCase { [null, '"etag"', null, '', false], ['etag', '"etag"', null, '', true], - [null, '', $now, $now->format(\DateTime::RFC2822), true], - [null, '', $now, $now->format(\DateTime::ATOM), false], - [null, '', null, $now->format(\DateTime::RFC2822), false], + [null, '', $now, $now->format(\DateTimeInterface::RFC2822), true], + [null, '', $now, $now->format(\DateTimeInterface::ATOM), false], + [null, '', null, $now->format(\DateTimeInterface::RFC2822), false], [null, '', $now, '', false], - ['etag', '"etag"', $now, $now->format(\DateTime::ATOM), true], - ['etag', '"etag"', $now, $now->format(\DateTime::RFC2822), true], + ['etag', '"etag"', $now, $now->format(\DateTimeInterface::ATOM), true], + ['etag', '"etag"', $now, $now->format(\DateTimeInterface::RFC2822), true], ]; } |