diff --git a/core/modules/views/lib/Drupal/views/Tests/ViewAjaxTest.php b/core/modules/views/lib/Drupal/views/Tests/ViewAjaxTest.php index d28a075..acba94d 100644 --- a/core/modules/views/lib/Drupal/views/Tests/ViewAjaxTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/ViewAjaxTest.php @@ -6,8 +6,7 @@ */ namespace Drupal\views\Tests; - -use Symfony\Component\Routing\Generator\UrlGeneratorInterface; +use Drupal\Component\Utility\Json; /** * Tests the ajax view functionality. @@ -21,13 +20,6 @@ class ViewAjaxTest extends ViewTestBase { */ public static $testViews = array('test_ajax_view'); - /** - * A http client. - * - * @var \Guzzle\Http\ClientInterface - */ - protected $httpClient; - public static function getInfo() { return array( 'name' => 'View: Ajax', @@ -40,8 +32,6 @@ protected function setUp() { parent::setUp(); $this->enableViewsTestModule(); - - $this->httpClient = $this->container->get('http_default_client'); } /** @@ -64,7 +54,7 @@ public function testAjaxView() { 'Content-Type: application/x-www-form-urlencoded', ), )); - $data = json_decode($response); + $data = Json::decode($response); // Ensure that the view insert command is part of the result. $this->assertEqual($data[1]->command, 'insert');