Loading core/modules/media/tests/src/Functional/ProviderRepositoryTest.php +2 −1 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ namespace Drupal\Tests\media\Functional; use Drupal\media\OEmbed\ProviderException; use GuzzleHttp\Psr7\Utils; /** * Tests the oEmbed provider repository. Loading @@ -28,7 +29,7 @@ class ProviderRepositoryTest extends MediaFunctionalTestBase { */ public function testEmptyProviderList($content) { $response = $this->prophesize('\GuzzleHttp\Psr7\Response'); $response->getBody()->willReturn($content); $response->getBody()->willReturn(Utils::streamFor($content)); $client = $this->createMock('\GuzzleHttp\Client'); $client->method('request')->withAnyParameters()->willReturn($response->reveal()); Loading Loading
core/modules/media/tests/src/Functional/ProviderRepositoryTest.php +2 −1 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ namespace Drupal\Tests\media\Functional; use Drupal\media\OEmbed\ProviderException; use GuzzleHttp\Psr7\Utils; /** * Tests the oEmbed provider repository. Loading @@ -28,7 +29,7 @@ class ProviderRepositoryTest extends MediaFunctionalTestBase { */ public function testEmptyProviderList($content) { $response = $this->prophesize('\GuzzleHttp\Psr7\Response'); $response->getBody()->willReturn($content); $response->getBody()->willReturn(Utils::streamFor($content)); $client = $this->createMock('\GuzzleHttp\Client'); $client->method('request')->withAnyParameters()->willReturn($response->reveal()); Loading