Skip to content

Commit

Permalink
Bug fix - failing CI test (#104)
Browse files Browse the repository at this point in the history
- Instead of `assertContains` use `assertStringContainsStringIgnoringCase`
- Instead of `assertInternalType` use `assertIsArray`
  • Loading branch information
marko220991 authored Feb 26, 2024
1 parent 226144c commit 7d7b98f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
database_type: mysql
database_image: "mariadb:latest"
coverage: false
experimental: true
experimental: false
- mediawiki_version: '1.40'
smw_version: dev-master
smw_version: 'dev-master'
php_version: 8.1
database_type: mysql
database_image: "mariadb:latest"
Expand Down
3 changes: 1 addition & 2 deletions tests/phpunit/Integration/I18nJsonFileIntegrityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public function testI18NJsonDecodeEncode( $file ) {

$contents = file_get_contents( $file );

$this->assertInternalType(
'array',
$this->assertIsArray(
json_decode( $contents, true ),
'Failed with ' . $this->getDescriptiveJsonError( json_last_error() ) . ' in ' . $file
);
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/Unit/MermaidParserFunctionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function testParse($text, $expected)
$mockExtractor
);

$this->assertContains(
$this->assertStringContainsStringIgnoringCase(
$expected,
$instance->parse($text)
);
Expand Down

0 comments on commit 7d7b98f

Please sign in to comment.