mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-01-11 17:18:42 +00:00
fix tests
This commit is contained in:
parent
0635773f67
commit
47dde020b1
|
|
@ -18,8 +18,8 @@ With Karaka you have one partner who can provide many tools and software solutio
|
|||
|
||||
## Requirements
|
||||
|
||||
* PHP 8.1
|
||||
* 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 8.2
|
||||
* 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
|
||||
* mysql-server (recommended) or postgresql postgresql-contrib
|
||||
* Tools: tesseract-ocr, pdftotext, pdftoppm
|
||||
|
|
|
|||
|
|
@ -8,15 +8,15 @@
|
|||
}
|
||||
],
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": ">=9.4",
|
||||
"friendsofphp/php-cs-fixer": ">=3.8",
|
||||
"squizlabs/php_codesniffer": ">=3.6",
|
||||
"phpunit/phpunit": ">=11.0",
|
||||
"friendsofphp/php-cs-fixer": ">=3.51",
|
||||
"squizlabs/php_codesniffer": ">=3.7",
|
||||
"phpmd/phpmd": ">=2.9",
|
||||
"phpstan/phpstan": ">=1.8.6",
|
||||
"phpstan/phpstan": ">=1.10.62",
|
||||
"phan/phan": ">=3.2.6",
|
||||
"phploc/phploc": ">=7.0",
|
||||
"phpmetrics/phpmetrics": ">=2.8",
|
||||
"rector/rector": ">=0.18.0"
|
||||
"rector/rector": ">=1.0.3"
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testCreateEditorDoc() : void
|
||||
|
|
@ -129,7 +129,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testCreateFileForDoc() : void
|
||||
|
|
@ -162,7 +162,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testCreateFileForDocEmptyUpload() : void
|
||||
|
|
@ -179,7 +179,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testCreateFileForDocInvalidData() : void
|
||||
|
|
@ -195,7 +195,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testInvalidEditorDocCreateRequest() : void
|
||||
|
|
@ -211,7 +211,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testUpdateEditorDoc() : void
|
||||
|
|
@ -231,7 +231,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testGetEditorDoc() : void
|
||||
|
|
@ -247,7 +247,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testDeleteEditorDoc() : void
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testCreateEditorDoc() : void
|
||||
|
|
@ -130,7 +130,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testCreateFileForDoc() : void
|
||||
|
|
@ -163,7 +163,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testCreateFileForDocEmptyUpload() : void
|
||||
|
|
@ -180,7 +180,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testCreateFileForDocInvalidData() : void
|
||||
|
|
@ -196,7 +196,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testInvalidEditorDocCreateRequest() : void
|
||||
|
|
@ -212,7 +212,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testUpdateEditorDoc() : void
|
||||
|
|
@ -232,7 +232,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testGetEditorDoc() : void
|
||||
|
|
@ -248,7 +248,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Controller\ApiController
|
||||
* @covers \Modules\Editor\Controller\ApiController
|
||||
* @group module
|
||||
*/
|
||||
public function testDeleteEditorDoc() : void
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use Modules\Editor\Models\EditorDocMapper;
|
|||
final class EditorDocMapperTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers Modules\Editor\Models\EditorDocMapper
|
||||
* @covers \Modules\Editor\Models\EditorDocMapper
|
||||
* @group module
|
||||
*/
|
||||
public function testCRUD() : void
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ final class EditorDocTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Models\EditorDoc
|
||||
* @covers \Modules\Editor\Models\EditorDoc
|
||||
* @group module
|
||||
*/
|
||||
public function testDefault() : void
|
||||
|
|
@ -49,7 +49,7 @@ final class EditorDocTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Models\EditorDoc
|
||||
* @covers \Modules\Editor\Models\EditorDoc
|
||||
* @group module
|
||||
*/
|
||||
public function testCreatedByInputOutput() : void
|
||||
|
|
@ -59,7 +59,7 @@ final class EditorDocTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Models\EditorDoc
|
||||
* @covers \Modules\Editor\Models\EditorDoc
|
||||
* @group module
|
||||
*/
|
||||
public function testTitleInputOutput() : void
|
||||
|
|
@ -69,7 +69,7 @@ final class EditorDocTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Models\EditorDoc
|
||||
* @covers \Modules\Editor\Models\EditorDoc
|
||||
* @group module
|
||||
*/
|
||||
public function testContentInputOutput() : void
|
||||
|
|
@ -79,7 +79,7 @@ final class EditorDocTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Models\EditorDoc
|
||||
* @covers \Modules\Editor\Models\EditorDoc
|
||||
* @group module
|
||||
*/
|
||||
public function testPlainInputOutput() : void
|
||||
|
|
@ -89,7 +89,7 @@ final class EditorDocTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Models\EditorDoc
|
||||
* @covers \Modules\Editor\Models\EditorDoc
|
||||
* @group module
|
||||
*/
|
||||
public function testPathInputOutput() : void
|
||||
|
|
@ -99,7 +99,7 @@ final class EditorDocTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Models\EditorDoc
|
||||
* @covers \Modules\Editor\Models\EditorDoc
|
||||
* @group module
|
||||
*/
|
||||
public function testSerialization() : void
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use Modules\Editor\Models\NullEditorDocHistory;
|
|||
final class NullEditorDocHistoryTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers Modules\Editor\Models\NullEditorDocHistory
|
||||
* @covers \Modules\Editor\Models\NullEditorDocHistory
|
||||
* @group module
|
||||
*/
|
||||
public function testNull() : void
|
||||
|
|
@ -31,7 +31,7 @@ final class NullEditorDocHistoryTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Models\NullEditorDocHistory
|
||||
* @covers \Modules\Editor\Models\NullEditorDocHistory
|
||||
* @group module
|
||||
*/
|
||||
public function testId() : void
|
||||
|
|
@ -41,7 +41,7 @@ final class NullEditorDocHistoryTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Models\NullEditorDocHistory
|
||||
* @covers \Modules\Editor\Models\NullEditorDocHistory
|
||||
* @group module
|
||||
*/
|
||||
public function testJsonSerialize() : void
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use Modules\Editor\Models\NullEditorDoc;
|
|||
final class NullEditorDocTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers Modules\Editor\Models\NullEditorDoc
|
||||
* @covers \Modules\Editor\Models\NullEditorDoc
|
||||
* @group module
|
||||
*/
|
||||
public function testNull() : void
|
||||
|
|
@ -31,7 +31,7 @@ final class NullEditorDocTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Models\NullEditorDoc
|
||||
* @covers \Modules\Editor\Models\NullEditorDoc
|
||||
* @group module
|
||||
*/
|
||||
public function testId() : void
|
||||
|
|
@ -41,7 +41,7 @@ final class NullEditorDocTest extends \PHPUnit\Framework\TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Editor\Models\NullEditorDoc
|
||||
* @covers \Modules\Editor\Models\NullEditorDoc
|
||||
* @group module
|
||||
*/
|
||||
public function testJsonSerialize() : void
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user