From 17291d8faa9d66466132ada37325681dfca73600 Mon Sep 17 00:00:00 2001 From: ADmad Date: Fri, 9 Feb 2024 18:00:45 +0530 Subject: [PATCH] Fix deprecation warnings --- tests/TestCase/Middleware/GlideMiddlewareTest.php | 6 ++++++ tests/TestCase/View/Helper/GlideHelperTest.php | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/tests/TestCase/Middleware/GlideMiddlewareTest.php b/tests/TestCase/Middleware/GlideMiddlewareTest.php index 5aba2d9..38d5195 100644 --- a/tests/TestCase/Middleware/GlideMiddlewareTest.php +++ b/tests/TestCase/Middleware/GlideMiddlewareTest.php @@ -9,6 +9,7 @@ use Cake\Core\Configure; use Cake\Event\EventManager; use Cake\Http\Response; +use Cake\Http\ServerRequest; use Cake\Http\ServerRequestFactory; use Cake\TestSuite\TestCase; use Cake\Utility\Security; @@ -16,10 +17,15 @@ use League\Flysystem\UnableToRetrieveMetadata; use League\Glide\ServerFactory; use League\Glide\Signatures\Signature; +use Psr\Http\Server\RequestHandlerInterface; use TestApp\Http\TestRequestHandler; class GlideMiddlewareTest extends TestCase { + protected array $config; + protected ServerRequest $request; + protected RequestHandlerInterface $handler; + public function setUp(): void { $this->config = [ diff --git a/tests/TestCase/View/Helper/GlideHelperTest.php b/tests/TestCase/View/Helper/GlideHelperTest.php index c0be26a..830c372 100644 --- a/tests/TestCase/View/Helper/GlideHelperTest.php +++ b/tests/TestCase/View/Helper/GlideHelperTest.php @@ -12,6 +12,10 @@ class GlideHelperTest extends TestCase { + protected ServerRequest $request; + protected View $view; + protected GlideHelper $helper; + public function setUp(): void { $this->request = new ServerRequest();