fix tests

This commit is contained in:
Dennis Eichhorn 2024-03-20 03:00:24 +00:00
parent 7f761fd41c
commit 37cbc61f1d
8 changed files with 31 additions and 31 deletions

View File

@ -18,8 +18,8 @@ With Karaka you have one partner who can provide many tools and software solutio
## Requirements ## Requirements
* PHP 8.1 * PHP 8.2
* PHP extension: php8.1-dev php8.1-cli php8.1-common php8.1-mysql php8.1-pgsql php8.1-xdebug php8.1-opcache php8.1-pdo php8.1-sqlite php8.1-mbstring php8.1-curl php8.1-imap php8.1-bcmath php8.1-zip php8.1-dom php8.1-xml php8.1-phar php8.1-gd php-pear * PHP extension: php8.2-dev php8.2-cli php8.2-common php8.2-intl php8.2-mysql php8.2-pgsql php8.2-xdebug php8.2-opcache php8.2-pdo php8.2-sqlite php8.2-mbstring php8.2-curl php8.2-imap php8.2-bcmath php8.2-zip php8.2-dom php8.2-xml php8.2-phar php8.2-gd php-pear
* apache2 (recommended) or nginx * apache2 (recommended) or nginx
* mysql-server (recommended) or postgresql postgresql-contrib * mysql-server (recommended) or postgresql postgresql-contrib
* Tools: tesseract-ocr, pdftotext, pdftoppm * Tools: tesseract-ocr, pdftotext, pdftoppm

View File

@ -8,15 +8,15 @@
} }
], ],
"require-dev": { "require-dev": {
"phpunit/phpunit": ">=9.4", "phpunit/phpunit": ">=11.0",
"friendsofphp/php-cs-fixer": ">=3.8", "friendsofphp/php-cs-fixer": ">=3.51",
"squizlabs/php_codesniffer": ">=3.6", "squizlabs/php_codesniffer": ">=3.7",
"phpmd/phpmd": ">=2.9", "phpmd/phpmd": ">=2.9",
"phpstan/phpstan": ">=1.8.6", "phpstan/phpstan": ">=1.10.62",
"phan/phan": ">=3.2.6", "phan/phan": ">=3.2.6",
"phploc/phploc": ">=7.0", "phploc/phploc": ">=7.0",
"phpmetrics/phpmetrics": ">=2.8", "phpmetrics/phpmetrics": ">=2.8",
"rector/rector": ">=0.18.0" "rector/rector": ">=1.0.3"
}, },
"minimum-stability": "dev", "minimum-stability": "dev",
"prefer-stable": true "prefer-stable": true

View File

@ -25,7 +25,7 @@ include_once __DIR__ . '/../../Autoloader.php';
trait ApiControllerAttributeTrait trait ApiControllerAttributeTrait
{ {
/** /**
* @covers Modules\FleetManagement\Controller\ApiVehicleAttributeController * @covers \Modules\FleetManagement\Controller\ApiVehicleAttributeController
* @group module * @group module
*/ */
public function testApiVehicleAttributeTypeCreate() : void public function testApiVehicleAttributeTypeCreate() : void
@ -43,7 +43,7 @@ trait ApiControllerAttributeTrait
} }
/** /**
* @covers Modules\FleetManagement\Controller\ApiVehicleAttributeController * @covers \Modules\FleetManagement\Controller\ApiVehicleAttributeController
* @group module * @group module
*/ */
public function testApiVehicleAttributeTypeL11nCreate() : void public function testApiVehicleAttributeTypeL11nCreate() : void
@ -61,7 +61,7 @@ trait ApiControllerAttributeTrait
} }
/** /**
* @covers Modules\FleetManagement\Controller\ApiVehicleAttributeController * @covers \Modules\FleetManagement\Controller\ApiVehicleAttributeController
* @group module * @group module
*/ */
public function testApiVehicleAttributeValueIntCreate() : void public function testApiVehicleAttributeValueIntCreate() : void
@ -81,7 +81,7 @@ trait ApiControllerAttributeTrait
} }
/** /**
* @covers Modules\FleetManagement\Controller\ApiVehicleAttributeController * @covers \Modules\FleetManagement\Controller\ApiVehicleAttributeController
* @group module * @group module
*/ */
public function testApiVehicleAttributeValueStrCreate() : void public function testApiVehicleAttributeValueStrCreate() : void
@ -100,7 +100,7 @@ trait ApiControllerAttributeTrait
} }
/** /**
* @covers Modules\FleetManagement\Controller\ApiVehicleAttributeController * @covers \Modules\FleetManagement\Controller\ApiVehicleAttributeController
* @group module * @group module
*/ */
public function testApiVehicleAttributeValueFloatCreate() : void public function testApiVehicleAttributeValueFloatCreate() : void
@ -119,7 +119,7 @@ trait ApiControllerAttributeTrait
} }
/** /**
* @covers Modules\FleetManagement\Controller\ApiVehicleAttributeController * @covers \Modules\FleetManagement\Controller\ApiVehicleAttributeController
* @group module * @group module
*/ */
public function testApiVehicleAttributeValueDatCreate() : void public function testApiVehicleAttributeValueDatCreate() : void
@ -138,7 +138,7 @@ trait ApiControllerAttributeTrait
} }
/** /**
* @covers Modules\FleetManagement\Controller\ApiVehicleAttributeController * @covers \Modules\FleetManagement\Controller\ApiVehicleAttributeController
* @group module * @group module
*/ */
public function testApiVehicleAttributeCreate() : void public function testApiVehicleAttributeCreate() : void
@ -156,7 +156,7 @@ trait ApiControllerAttributeTrait
} }
/** /**
* @covers Modules\FleetManagement\Controller\ApiVehicleAttributeController * @covers \Modules\FleetManagement\Controller\ApiVehicleAttributeController
* @group module * @group module
*/ */
public function testApiVehicleAttributeValueCreateInvalidData() : void public function testApiVehicleAttributeValueCreateInvalidData() : void
@ -172,7 +172,7 @@ trait ApiControllerAttributeTrait
} }
/** /**
* @covers Modules\FleetManagement\Controller\ApiVehicleAttributeController * @covers \Modules\FleetManagement\Controller\ApiVehicleAttributeController
* @group module * @group module
*/ */
public function testApiVehicleAttributeTypeCreateInvalidData() : void public function testApiVehicleAttributeTypeCreateInvalidData() : void
@ -188,7 +188,7 @@ trait ApiControllerAttributeTrait
} }
/** /**
* @covers Modules\FleetManagement\Controller\ApiVehicleAttributeController * @covers \Modules\FleetManagement\Controller\ApiVehicleAttributeController
* @group module * @group module
*/ */
public function testApiVehicleAttributeTypeL11nCreateInvalidData() : void public function testApiVehicleAttributeTypeL11nCreateInvalidData() : void
@ -204,7 +204,7 @@ trait ApiControllerAttributeTrait
} }
/** /**
* @covers Modules\FleetManagement\Controller\ApiVehicleAttributeController * @covers \Modules\FleetManagement\Controller\ApiVehicleAttributeController
* @group module * @group module
*/ */
public function testApiVehicleAttributeCreateInvalidData() : void public function testApiVehicleAttributeCreateInvalidData() : void

View File

@ -23,7 +23,7 @@ use phpOMS\Utils\RnG\Text;
trait ApiControllerVehicleTrait trait ApiControllerVehicleTrait
{ {
/** /**
* @covers Modules\FleetManagement\Controller\ApiVehicleController * @covers \Modules\FleetManagement\Controller\ApiVehicleController
* @group module * @group module
*/ */
public function testApiVehicleCreate() : void public function testApiVehicleCreate() : void

View File

@ -22,7 +22,7 @@ use Modules\FleetManagement\Models\Driver\NullDriverInspection;
final class NullDriverInspectionTest extends \PHPUnit\Framework\TestCase final class NullDriverInspectionTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @covers Modules\FleetManagement\Models\Driver\NullDriverInspection * @covers \Modules\FleetManagement\Models\Driver\NullDriverInspection
* @group module * @group module
*/ */
public function testNull() : void public function testNull() : void
@ -31,7 +31,7 @@ final class NullDriverInspectionTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @covers Modules\FleetManagement\Models\Driver\NullDriverInspection * @covers \Modules\FleetManagement\Models\Driver\NullDriverInspection
* @group module * @group module
*/ */
public function testId() : void public function testId() : void
@ -41,7 +41,7 @@ final class NullDriverInspectionTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @covers Modules\FleetManagement\Models\Driver\NullDriverInspection * @covers \Modules\FleetManagement\Models\Driver\NullDriverInspection
* @group module * @group module
*/ */
public function testJsonSerialize() : void public function testJsonSerialize() : void

View File

@ -22,7 +22,7 @@ use Modules\FleetManagement\Models\Driver\NullDriver;
final class NullDriverTest extends \PHPUnit\Framework\TestCase final class NullDriverTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @covers Modules\FleetManagement\Models\Driver\NullDriver * @covers \Modules\FleetManagement\Models\Driver\NullDriver
* @group module * @group module
*/ */
public function testNull() : void public function testNull() : void
@ -31,7 +31,7 @@ final class NullDriverTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @covers Modules\FleetManagement\Models\Driver\NullDriver * @covers \Modules\FleetManagement\Models\Driver\NullDriver
* @group module * @group module
*/ */
public function testId() : void public function testId() : void
@ -41,7 +41,7 @@ final class NullDriverTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @covers Modules\FleetManagement\Models\Driver\NullDriver * @covers \Modules\FleetManagement\Models\Driver\NullDriver
* @group module * @group module
*/ */
public function testJsonSerialize() : void public function testJsonSerialize() : void

View File

@ -22,7 +22,7 @@ use Modules\FleetManagement\Models\NullInspection;
final class NullInspectionTest extends \PHPUnit\Framework\TestCase final class NullInspectionTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @covers Modules\FleetManagement\Models\NullInspection * @covers \Modules\FleetManagement\Models\NullInspection
* @group module * @group module
*/ */
public function testNull() : void public function testNull() : void
@ -31,7 +31,7 @@ final class NullInspectionTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @covers Modules\FleetManagement\Models\NullInspection * @covers \Modules\FleetManagement\Models\NullInspection
* @group module * @group module
*/ */
public function testId() : void public function testId() : void
@ -41,7 +41,7 @@ final class NullInspectionTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @covers Modules\FleetManagement\Models\NullInspection * @covers \Modules\FleetManagement\Models\NullInspection
* @group module * @group module
*/ */
public function testJsonSerialize() : void public function testJsonSerialize() : void

View File

@ -22,7 +22,7 @@ use Modules\FleetManagement\Models\NullVehicle;
final class NullVehicleTest extends \PHPUnit\Framework\TestCase final class NullVehicleTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @covers Modules\FleetManagement\Models\NullVehicle * @covers \Modules\FleetManagement\Models\NullVehicle
* @group module * @group module
*/ */
public function testNull() : void public function testNull() : void
@ -31,7 +31,7 @@ final class NullVehicleTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @covers Modules\FleetManagement\Models\NullVehicle * @covers \Modules\FleetManagement\Models\NullVehicle
* @group module * @group module
*/ */
public function testId() : void public function testId() : void
@ -41,7 +41,7 @@ final class NullVehicleTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @covers Modules\FleetManagement\Models\NullVehicle * @covers \Modules\FleetManagement\Models\NullVehicle
* @group module * @group module
*/ */
public function testJsonSerialize() : void public function testJsonSerialize() : void