mirror of
https://github.com/Karaka-Management/oms-ClientManagement.git
synced 2026-01-11 07:18:41 +00:00
fix tests
This commit is contained in:
parent
2e30a80417
commit
161202e809
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ use phpOMS\Message\Http\RequestStatusCode;
|
||||||
trait ApiControllerAttributeTrait
|
trait ApiControllerAttributeTrait
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientAttributeTypeCreate() : void
|
public function testApiClientAttributeTypeCreate() : void
|
||||||
|
|
@ -41,7 +41,7 @@ trait ApiControllerAttributeTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientAttributeTypeL11nCreate() : void
|
public function testApiClientAttributeTypeL11nCreate() : void
|
||||||
|
|
@ -59,7 +59,7 @@ trait ApiControllerAttributeTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientAttributeValueIntCreate() : void
|
public function testApiClientAttributeValueIntCreate() : void
|
||||||
|
|
@ -79,7 +79,7 @@ trait ApiControllerAttributeTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientAttributeValueStrCreate() : void
|
public function testApiClientAttributeValueStrCreate() : void
|
||||||
|
|
@ -98,7 +98,7 @@ trait ApiControllerAttributeTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientAttributeValueFloatCreate() : void
|
public function testApiClientAttributeValueFloatCreate() : void
|
||||||
|
|
@ -117,7 +117,7 @@ trait ApiControllerAttributeTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientAttributeValueDatCreate() : void
|
public function testApiClientAttributeValueDatCreate() : void
|
||||||
|
|
@ -136,7 +136,7 @@ trait ApiControllerAttributeTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientAttributeCreate() : void
|
public function testApiClientAttributeCreate() : void
|
||||||
|
|
@ -154,7 +154,7 @@ trait ApiControllerAttributeTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientAttributeValueCreateInvalidData() : void
|
public function testApiClientAttributeValueCreateInvalidData() : void
|
||||||
|
|
@ -170,7 +170,7 @@ trait ApiControllerAttributeTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientAttributeTypeCreateInvalidData() : void
|
public function testApiClientAttributeTypeCreateInvalidData() : void
|
||||||
|
|
@ -186,7 +186,7 @@ trait ApiControllerAttributeTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientAttributeTypeL11nCreateInvalidData() : void
|
public function testApiClientAttributeTypeL11nCreateInvalidData() : void
|
||||||
|
|
@ -202,7 +202,7 @@ trait ApiControllerAttributeTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientAttributeCreateInvalidData() : void
|
public function testApiClientAttributeCreateInvalidData() : void
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ trait ApiControllerClientTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientCreate() : void
|
public function testApiClientCreate() : void
|
||||||
|
|
@ -58,7 +58,7 @@ trait ApiControllerClientTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientCreateInvalidData() : void
|
public function testApiClientCreateInvalidData() : void
|
||||||
|
|
@ -74,7 +74,7 @@ trait ApiControllerClientTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientProfileImageCreate() : void
|
public function testApiClientProfileImageCreate() : void
|
||||||
|
|
@ -105,7 +105,7 @@ trait ApiControllerClientTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientFileCreate() : void
|
public function testApiClientFileCreate() : void
|
||||||
|
|
@ -135,7 +135,7 @@ trait ApiControllerClientTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiClientNoteCreate() : void
|
public function testApiClientNoteCreate() : void
|
||||||
|
|
@ -156,7 +156,7 @@ trait ApiControllerClientTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Controller\ApiController
|
* @covers \Modules\ClientManagement\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiFileCreateInvalidData() : void
|
public function testApiFileCreateInvalidData() : void
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ use Modules\Profile\Models\ProfileMapper;
|
||||||
final class ClientMapperTest extends \PHPUnit\Framework\TestCase
|
final class ClientMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Models\ClientMapper
|
* @covers \Modules\ClientManagement\Models\ClientMapper
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testCR() : void
|
public function testCR() : void
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ final class ClientTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Models\Client
|
* @covers \Modules\ClientManagement\Models\Client
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -53,7 +53,7 @@ final class ClientTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Models\Client
|
* @covers \Modules\ClientManagement\Models\Client
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testNoteInputOutput() : void
|
public function testNoteInputOutput() : void
|
||||||
|
|
@ -63,7 +63,7 @@ final class ClientTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Models\Client
|
* @covers \Modules\ClientManagement\Models\Client
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testSerialize() : void
|
public function testSerialize() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use Modules\ClientManagement\Models\NullClient;
|
||||||
final class NullClientTest extends \PHPUnit\Framework\TestCase
|
final class NullClientTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Models\NullClient
|
* @covers \Modules\ClientManagement\Models\NullClient
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testNull() : void
|
public function testNull() : void
|
||||||
|
|
@ -31,7 +31,7 @@ final class NullClientTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Models\NullClient
|
* @covers \Modules\ClientManagement\Models\NullClient
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testId() : void
|
public function testId() : void
|
||||||
|
|
@ -41,7 +41,7 @@ final class NullClientTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\ClientManagement\Models\NullClient
|
* @covers \Modules\ClientManagement\Models\NullClient
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testJsonSerialize() : void
|
public function testJsonSerialize() : void
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user