Unverified Commit 2c57cbec authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3220450 by xjm, phenaproxima: OEmbed...

Issue #3220450 by xjm, phenaproxima: OEmbed ProviderRepositoryTest::testEmptyProviderList() does not interact with Guzzle's API correctly
parent f127c934
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
namespace Drupal\Tests\media\Functional;

use Drupal\media\OEmbed\ProviderException;
use GuzzleHttp\Psr7\Utils;

/**
 * Tests the oEmbed provider repository.
@@ -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());