mirror of
https://github.com/Karaka-Management/oms-Kanban.git
synced 2026-02-18 13:18:41 +00:00
fix tests
This commit is contained in:
parent
f71c28f499
commit
8d7dc83058
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Controller\ApiController
|
* @covers \Modules\Kanban\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiBoardCU() : void
|
public function testApiBoardCU() : void
|
||||||
|
|
@ -120,7 +120,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Controller\ApiController
|
* @covers \Modules\Kanban\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testCreateColumn() : void
|
public function testCreateColumn() : void
|
||||||
|
|
@ -139,7 +139,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Controller\ApiController
|
* @covers \Modules\Kanban\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testCreateCard() : void
|
public function testCreateCard() : void
|
||||||
|
|
@ -176,7 +176,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Controller\ApiController
|
* @covers \Modules\Kanban\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiKanbanBoardCreateInvalidData() : void
|
public function testApiKanbanBoardCreateInvalidData() : void
|
||||||
|
|
@ -192,7 +192,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Controller\ApiController
|
* @covers \Modules\Kanban\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiKanbanColumnCreateInvalidData() : void
|
public function testApiKanbanColumnCreateInvalidData() : void
|
||||||
|
|
@ -208,7 +208,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Controller\ApiController
|
* @covers \Modules\Kanban\Controller\ApiController
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testApiKanbanCardCreateInvalidData() : void
|
public function testApiKanbanCardCreateInvalidData() : void
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ use Modules\Kanban\Models\KanbanBoardMapper;
|
||||||
final class KanbanBoardMapperTest extends \PHPUnit\Framework\TestCase
|
final class KanbanBoardMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\KanbanBoardMapper
|
* @covers \Modules\Kanban\Models\KanbanBoardMapper
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testCRUD() : void
|
public function testCRUD() : void
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ final class KanbanBoardTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\KanbanBoard
|
* @covers \Modules\Kanban\Models\KanbanBoard
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -49,7 +49,7 @@ final class KanbanBoardTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\KanbanBoard
|
* @covers \Modules\Kanban\Models\KanbanBoard
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testColumnsInputOutput() : void
|
public function testColumnsInputOutput() : void
|
||||||
|
|
@ -59,7 +59,7 @@ final class KanbanBoardTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\KanbanBoard
|
* @covers \Modules\Kanban\Models\KanbanBoard
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testColumnRemove() : void
|
public function testColumnRemove() : void
|
||||||
|
|
@ -71,7 +71,7 @@ final class KanbanBoardTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\KanbanBoard
|
* @covers \Modules\Kanban\Models\KanbanBoard
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testSerialize() : void
|
public function testSerialize() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final class KanbanCardCommentMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @depends Modules\Kanban\tests\Models\KanbanCardMapperTest::testCRUD
|
* @depends Modules\Kanban\tests\Models\KanbanCardMapperTest::testCRUD
|
||||||
* @covers Modules\Kanban\Models\KanbanCardCommentMapper
|
* @covers \Modules\Kanban\Models\KanbanCardCommentMapper
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testCRUD() : void
|
public function testCRUD() : void
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ final class KanbanCardMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @depends Modules\Kanban\tests\Models\KanbanCardMapperTest::testCRUD
|
* @depends Modules\Kanban\tests\Models\KanbanCardMapperTest::testCRUD
|
||||||
* @covers Modules\Kanban\Models\KanbanCardMapper
|
* @covers \Modules\Kanban\Models\KanbanCardMapper
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testCRUD() : void
|
public function testCRUD() : void
|
||||||
|
|
@ -62,7 +62,7 @@ final class KanbanCardMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\KanbanCardMapper
|
* @covers \Modules\Kanban\Models\KanbanCardMapper
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testTaskCard() : void
|
public function testTaskCard() : void
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ final class KanbanCardTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\KanbanCard
|
* @covers \Modules\Kanban\Models\KanbanCard
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -55,7 +55,7 @@ final class KanbanCardTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\KanbanCard
|
* @covers \Modules\Kanban\Models\KanbanCard
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testColumnInputOutput() : void
|
public function testColumnInputOutput() : void
|
||||||
|
|
@ -65,7 +65,7 @@ final class KanbanCardTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\KanbanCard
|
* @covers \Modules\Kanban\Models\KanbanCard
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testCreateFromTask() : void
|
public function testCreateFromTask() : void
|
||||||
|
|
@ -74,7 +74,7 @@ final class KanbanCardTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\KanbanCard
|
* @covers \Modules\Kanban\Models\KanbanCard
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testSerialize() : void
|
public function testSerialize() : void
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ final class KanbanColumnMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @depends Modules\Kanban\tests\Models\KanbanBoardMapperTest::testCRUD
|
* @depends Modules\Kanban\tests\Models\KanbanBoardMapperTest::testCRUD
|
||||||
* @covers Modules\Kanban\Models\KanbanColumnMapper
|
* @covers \Modules\Kanban\Models\KanbanColumnMapper
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testCRUD() : void
|
public function testCRUD() : void
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ final class KanbanColumnTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\KanbanColumn
|
* @covers \Modules\Kanban\Models\KanbanColumn
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -46,7 +46,7 @@ final class KanbanColumnTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\KanbanColumn
|
* @covers \Modules\Kanban\Models\KanbanColumn
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testCardInputOutput() : void
|
public function testCardInputOutput() : void
|
||||||
|
|
@ -56,7 +56,7 @@ final class KanbanColumnTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\KanbanColumn
|
* @covers \Modules\Kanban\Models\KanbanColumn
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testCardRemove() : void
|
public function testCardRemove() : void
|
||||||
|
|
@ -69,7 +69,7 @@ final class KanbanColumnTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\KanbanColumn
|
* @covers \Modules\Kanban\Models\KanbanColumn
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testSerialize() : void
|
public function testSerialize() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use Modules\Kanban\Models\NullKanbanBoard;
|
||||||
final class NullKanbanBoardTest extends \PHPUnit\Framework\TestCase
|
final class NullKanbanBoardTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\NullKanbanBoard
|
* @covers \Modules\Kanban\Models\NullKanbanBoard
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testNull() : void
|
public function testNull() : void
|
||||||
|
|
@ -31,7 +31,7 @@ final class NullKanbanBoardTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\NullKanbanBoard
|
* @covers \Modules\Kanban\Models\NullKanbanBoard
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testId() : void
|
public function testId() : void
|
||||||
|
|
@ -41,7 +41,7 @@ final class NullKanbanBoardTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\NullKanbanBoard
|
* @covers \Modules\Kanban\Models\NullKanbanBoard
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testJsonSerialize() : void
|
public function testJsonSerialize() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use Modules\Kanban\Models\NullKanbanCard;
|
||||||
final class NullKanbanCardTest extends \PHPUnit\Framework\TestCase
|
final class NullKanbanCardTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\NullKanbanCard
|
* @covers \Modules\Kanban\Models\NullKanbanCard
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testNull() : void
|
public function testNull() : void
|
||||||
|
|
@ -31,7 +31,7 @@ final class NullKanbanCardTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\NullKanbanCard
|
* @covers \Modules\Kanban\Models\NullKanbanCard
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testId() : void
|
public function testId() : void
|
||||||
|
|
@ -41,7 +41,7 @@ final class NullKanbanCardTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\NullKanbanCard
|
* @covers \Modules\Kanban\Models\NullKanbanCard
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testJsonSerialize() : void
|
public function testJsonSerialize() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use Modules\Kanban\Models\NullKanbanColumn;
|
||||||
final class NullKanbanColumnTest extends \PHPUnit\Framework\TestCase
|
final class NullKanbanColumnTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\NullKanbanColumn
|
* @covers \Modules\Kanban\Models\NullKanbanColumn
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testNull() : void
|
public function testNull() : void
|
||||||
|
|
@ -31,7 +31,7 @@ final class NullKanbanColumnTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\NullKanbanColumn
|
* @covers \Modules\Kanban\Models\NullKanbanColumn
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testId() : void
|
public function testId() : void
|
||||||
|
|
@ -41,7 +41,7 @@ final class NullKanbanColumnTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Modules\Kanban\Models\NullKanbanColumn
|
* @covers \Modules\Kanban\Models\NullKanbanColumn
|
||||||
* @group module
|
* @group module
|
||||||
*/
|
*/
|
||||||
public function testJsonSerialize() : void
|
public function testJsonSerialize() : void
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user