Skip to content
Snippets Groups Projects
Commit 3ff7d0bb authored by Peter Wolanin's avatar Peter Wolanin Committed by Peter Wolanin
Browse files

Issue #3299455 by Project Update Bot, pwolanin: Drupal 10 compatibility fixes

parent aaad64dc
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
"license": "GPL-2.0-or-later",
"require": {
"ext-json": "*",
"php": ">=7.0.8",
"php": ">=7.4",
"drupal/csv_serialization": "^1.0 || ^2.0"
}
}
......@@ -19,7 +19,7 @@ class CsvExportTest extends EntityKernelTestBase {
*
* @var array
*/
public static $modules = [
protected static $modules = [
'node',
'views',
'rest',
......@@ -69,9 +69,9 @@ class CsvExportTest extends EntityKernelTestBase {
$this->assertEquals($output, $streamed_output);
// Tags stripped.
$this->assertContains(",angry", $streamed_output);
$this->assertStringContainsString(",angry", $streamed_output);
// Whitespace trimmed.
$this->assertContains('"node 6",', $streamed_output);
$this->assertStringContainsString('"node 6",', $streamed_output);
}
/**
......@@ -121,9 +121,9 @@ class CsvExportTest extends EntityKernelTestBase {
$this->assertEquals($output, $streamed_output);
// Tags not stripped.
$this->assertContains("<em>angry</em>", $streamed_output);
$this->assertStringContainsString("<em>angry</em>", $streamed_output);
// Whitespace not trimmed.
$this->assertContains("\"\t node 6\",", $streamed_output);
$this->assertStringContainsString("\"\t node 6\",", $streamed_output);
}
/**
......@@ -146,7 +146,7 @@ class CsvExportTest extends EntityKernelTestBase {
$header = fgets($stream);
$this->assertNotEmpty($header);
// Pipe in the header should be replaced.
$this->assertContains('Some ; Codes', $header);
$this->assertStringContainsString('Some ; Codes', $header);
$rows = [];
while ($s = fgets($stream)) {
$rows[] = $s;
......
......@@ -19,7 +19,7 @@ class JsonExportTest extends EntityKernelTestBase {
*
* @var array
*/
public static $modules = [
protected static $modules = [
'node',
'views',
'rest',
......
name: 'Views Streaming Data'
type: module
description: 'Provides streaming CSV and JSON as Views formats.'
core_version_requirement: ^8.7.12 || ^9.0
php: 7.0
core_version_requirement: "^9.0 || ^10.0"
package: Views
dependencies:
- csv_serialization:csv_serialization
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment