tests: Replace assertInternalType with proper method.

See https://github.com/sebastianbergmann/phpunit/issues/3369
This commit is contained in:
Pol Dellaiera
2022-01-04 16:20:49 +01:00
parent 06f8014b76
commit 6ebcd87508
6 changed files with 14 additions and 20 deletions

View File

@@ -151,8 +151,7 @@ abstract class AbstractExportTest extends WebTestCase
{
$export = $this->getExport();
$this->assertInternalType(
'string',
$this->assertIsString(
$export->getDescription(),
'Assert that the `getDescription` method return a string'
);
@@ -214,8 +213,7 @@ abstract class AbstractExportTest extends WebTestCase
$results = $this->getExport()->getResult($query, $data);
$this->assertInternalType(
'array',
$this->assertIsArray(
$results,
'assert that the returned result is an array'
);
@@ -271,8 +269,7 @@ abstract class AbstractExportTest extends WebTestCase
{
$export = $this->getExport();
$this->assertInternalType(
'string',
$this->assertIsString(
$export->getType(),
'Assert that the `getType` method return a string'
);