Skip to content

Commit

Permalink
Merge pull request #122 from SemanticMediaWiki/paladox-patch-2
Browse files Browse the repository at this point in the history
Add tests for MW 1.41, 1.42 and 1.43
  • Loading branch information
gesinn-it-gea authored Dec 18, 2024
2 parents c03a1cd + 88a573a commit d2cc5e2
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 7 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,57 @@ jobs:
include:
- mediawiki_version: '1.39'
smw_version: '4.2.0'
pf_version: '5.9'
php_version: 8.1
database_type: mysql
database_image: "mariadb:11.2"
coverage: false
experimental: false
- mediawiki_version: '1.39'
smw_version: dev-master
pf_version: '5.9'
php_version: 8.1
database_type: mysql
database_image: "mysql:8"
coverage: false
experimental: false
- mediawiki_version: '1.40'
smw_version: '4.2.0'
pf_version: '5.9'
php_version: 8.1
database_type: mysql
database_image: "mariadb:11.2"
coverage: true
experimental: false
- mediawiki_version: '1.41'
smw_version: dev-master
pf_version: '5.9'
php_version: 8.1
database_type: mysql
database_image: "mariadb:11.2"
coverage: false
experimental: false
- mediawiki_version: '1.42'
smw_version: dev-master
pf_version: '5.9'
php_version: 8.1
database_type: mysql
database_image: "mariadb:11.2"
coverage: false
experimental: false
- mediawiki_version: '1.43'
smw_version: dev-master
pf_version: '5.9'
php_version: 8.1
database_type: mysql
database_image: "mariadb:11.2"
coverage: false
experimental: false

env:
MW_VERSION: ${{ matrix.mediawiki_version }}
SMW_VERSION: ${{ matrix.smw_version }}
PF_VERSION: ${{ matrix.pf_version }}
PHP_VERSION: ${{ matrix.php_version }}
DB_TYPE: ${{ matrix.database_type }}
DB_IMAGE: ${{ matrix.database_image }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ DB_IMAGE?=""

# extensions
SMW_VERSION?=4.1.2
PF_VERSION?=5.5.1
PF_VERSION?=5.9

# composer
# Enables "composer update" inside of extension
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"php": ">=7.3",
"composer/installers": "1.*,>=1.0.1",
"mediawiki/semantic-media-wiki": "~3.0|~4.0|~5.0",
"mediawiki/page-forms": ">=5.3.0"
"mediawiki/page-forms": ">=5.9.0"
},
"require-dev": {
"mediawiki/semantic-media-wiki": "@dev",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author FelixAba
*/
class ApiSemanticFormsSelectRequestProcessorTest
extends \PHPUnit_Framework_TestCase {
extends \PHPUnit\Framework\TestCase {

private $ApiSFSRP;

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/Unit/ApiSemanticFormsSelectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @author mwjames
*/
class ApiSemanticFormsSelectTest extends \PHPUnit_Framework_TestCase {
class ApiSemanticFormsSelectTest extends \PHPUnit\Framework\TestCase {

private $ApiSFS;
private $ApiMain;
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/Unit/OutputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @author mwjames
*/
class OutputTest extends \PHPUnit_Framework_TestCase {
class OutputTest extends \PHPUnit\Framework\TestCase {
private $data;

protected function setUp(): void {
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/Unit/SelectFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @group semantic-forms-select
* @author FelixAba
*/
class SelectFieldTest extends \PHPUnit_Framework_TestCase {
class SelectFieldTest extends \PHPUnit\Framework\TestCase {
private $selectField;

private $other_args_query_parametrized = [ 'query' => '((Category:Building Complex))((Part Of Site::@@@@));?Display Title;format~list;sort~Display Title;sep~,;link~none;headers~hide;limit~500' ];
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/Unit/SemanticFormsSelectInputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @author FelixAba
*/
class SemanticFormsSelectInputTest extends \PHPUnit_Framework_TestCase {
class SemanticFormsSelectInputTest extends \PHPUnit\Framework\TestCase {

private $SFSInput;

Expand Down

0 comments on commit d2cc5e2

Please sign in to comment.