From 406a75d4a9ba9c425430550f798c57c1d979906c Mon Sep 17 00:00:00 2001 From: elizoller Date: Thu, 19 Nov 2020 22:08:45 +0000 Subject: [PATCH] stream_for updates for d9 --- tests/src/Kernel/FedoraAdapterTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/src/Kernel/FedoraAdapterTest.php b/tests/src/Kernel/FedoraAdapterTest.php index 522321c4..51892e7c 100644 --- a/tests/src/Kernel/FedoraAdapterTest.php +++ b/tests/src/Kernel/FedoraAdapterTest.php @@ -4,6 +4,7 @@ namespace Drupal\Tests\islandora\Kernel; use Drupal\islandora\Flysystem\Adapter\FedoraAdapter; use GuzzleHttp\Psr7; +use GuzzleHttp\Psr7\Utils; use GuzzleHttp\Psr7\Response; use Islandora\Chullo\IFedoraApi; use League\Flysystem\Config; @@ -52,7 +53,7 @@ class FedoraAdapterTest extends IslandoraKernelTestBase { ]); $prophecy->getHeader('Content-Type')->willReturn(['text/plain']); $prophecy->getHeader('Content-Length')->willReturn([strlen("DERP")]); - $prophecy->getBody()->willReturn(PSR7\stream_for("DERP")); + $prophecy->getBody()->willReturn(Utils::streamFor("DERP")); $response = $prophecy->reveal(); $prophecy = $this->prophesize(IFedoraApi::class); @@ -118,7 +119,7 @@ class FedoraAdapterTest extends IslandoraKernelTestBase { ]); $prophecy->getHeader('Content-Type')->willReturn(['text/plain']); $prophecy->getHeader('Content-Length')->willReturn([strlen("DERP")]); - $prophecy->getBody()->willReturn(PSR7\stream_for("DERP")); + $prophecy->getBody()->willReturn(Utils::streamFor("DERP")); $fedora_prophecy->getResourceHeaders('')->willReturn($prophecy->reveal()); @@ -610,7 +611,7 @@ class FedoraAdapterTest extends IslandoraKernelTestBase { ]); $prophecy->getHeader('Content-Type')->willReturn(['text/plain']); $prophecy->getHeader('Content-Length')->willReturn([strlen("DERP")]); - $prophecy->getBody()->willReturn(PSR7\stream_for("DERP")); + $prophecy->getBody()->willReturn(Utils::streamFor("DERP")); $response = $prophecy->reveal(); $fedora_prophecy = $this->prophesize(IFedoraApi::class);