Unverified Commit 0a1be73a authored by alexpott's avatar alexpott

Issue #2990535 by Lendude: Convert remaining WebTestBase tests in the Statistics module

parent 217a1479
<?php
namespace Drupal\statistics\Tests\Views;
namespace Drupal\Tests\statistics\Functional\Views;
use Drupal\views\Tests\ViewTestBase;
use Drupal\Tests\views\Functional\ViewTestBase;
use Drupal\views\Tests\ViewTestData;
/**
......@@ -74,7 +74,7 @@ public function testNodeCounterIntegration() {
// @see \Drupal\statistics\Tests\StatisticsLoggingTest::testLogging().
global $base_url;
$stats_path = $base_url . '/' . drupal_get_path('module', 'statistics') . '/statistics.php';
$client = \Drupal::httpClient();
$client = $this->getHttpClient();
$client->post($stats_path, ['form_params' => ['nid' => $this->node->id()]]);
$this->drupalGet('test_statistics_integration');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment