Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Eichhorn committed Mar 20, 2024
1 parent d79e2d1 commit b345505
Show file tree
Hide file tree
Showing 17 changed files with 81 additions and 81 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions tests/Controller/ApiControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function setUp() : void
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testCreateTask() : void
Expand Down Expand Up @@ -124,7 +124,7 @@ public function testCreateTask() : void
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testApiTaskGet() : void
Expand All @@ -141,7 +141,7 @@ public function testApiTaskGet() : void
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testApiTaskSet() : void
Expand All @@ -161,7 +161,7 @@ public function testApiTaskSet() : void
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testCreateTaskElement() : void
Expand Down Expand Up @@ -199,7 +199,7 @@ public function testCreateTaskElement() : void
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testApiTaskElementGet() : void
Expand All @@ -216,7 +216,7 @@ public function testApiTaskElementGet() : void
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testApiTaskElementSet() : void
Expand All @@ -235,7 +235,7 @@ public function testApiTaskElementSet() : void
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testInvalidTaskCreate() : void
Expand All @@ -252,7 +252,7 @@ public function testInvalidTaskCreate() : void
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testInvalidTaskElementCreate() : void
Expand Down
2 changes: 1 addition & 1 deletion tests/Controller/BackendControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function setUp() : void
}

/**
* @covers Modules\Tasks\Controller\BackendController
* @covers \Modules\Tasks\Controller\BackendController
* @group module
*/
public function testNavigation() : void
Expand Down
16 changes: 8 additions & 8 deletions tests/Controller/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ final class ControllerTest extends \PHPUnit\Framework\TestCase
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testCreateTask() : void
Expand Down Expand Up @@ -125,7 +125,7 @@ final class ControllerTest extends \PHPUnit\Framework\TestCase
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testApiTaskGet() : void
Expand All @@ -142,7 +142,7 @@ final class ControllerTest extends \PHPUnit\Framework\TestCase
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testApiTaskSet() : void
Expand All @@ -162,7 +162,7 @@ final class ControllerTest extends \PHPUnit\Framework\TestCase
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testCreateTaskElement() : void
Expand Down Expand Up @@ -200,7 +200,7 @@ final class ControllerTest extends \PHPUnit\Framework\TestCase
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testApiTaskElementGet() : void
Expand All @@ -217,7 +217,7 @@ final class ControllerTest extends \PHPUnit\Framework\TestCase
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testApiTaskElementSet() : void
Expand All @@ -236,7 +236,7 @@ final class ControllerTest extends \PHPUnit\Framework\TestCase
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testInvalidTaskCreate() : void
Expand All @@ -253,7 +253,7 @@ final class ControllerTest extends \PHPUnit\Framework\TestCase
}

/**
* @covers Modules\Tasks\Controller\ApiController
* @covers \Modules\Tasks\Controller\ApiController
* @group module
*/
public function testInvalidTaskElementCreate() : void
Expand Down
4 changes: 2 additions & 2 deletions tests/Models/AccountRelationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
final class AccountRelationTest extends \PHPUnit\Framework\TestCase
{
/**
* @covers Modules\Tasks\Models\AccountRelation
* @covers \Modules\Tasks\Models\AccountRelation
* @group module
*/
public function testDefault() : void
Expand All @@ -36,7 +36,7 @@ public function testDefault() : void
}

/**
* @covers Modules\Tasks\Models\AccountRelation
* @covers \Modules\Tasks\Models\AccountRelation
* @group module
*/
public function testSetGet() : void
Expand Down
4 changes: 2 additions & 2 deletions tests/Models/GroupRelationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
final class GroupRelationTest extends \PHPUnit\Framework\TestCase
{
/**
* @covers Modules\Tasks\Models\GroupRelation
* @covers \Modules\Tasks\Models\GroupRelation
* @group module
*/
public function testDefault() : void
Expand All @@ -36,7 +36,7 @@ public function testDefault() : void
}

/**
* @covers Modules\Tasks\Models\GroupRelation
* @covers \Modules\Tasks\Models\GroupRelation
* @group module
*/
public function testSetGet() : void
Expand Down
6 changes: 3 additions & 3 deletions tests/Models/NullAccountRelationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
final class NullAccountRelationTest extends \PHPUnit\Framework\TestCase
{
/**
* @covers Modules\Tasks\Models\NullAccountRelation
* @covers \Modules\Tasks\Models\NullAccountRelation
* @group module
*/
public function testNull() : void
Expand All @@ -31,7 +31,7 @@ public function testNull() : void
}

/**
* @covers Modules\Tasks\Models\NullAccountRelation
* @covers \Modules\Tasks\Models\NullAccountRelation
* @group module
*/
public function testId() : void
Expand All @@ -41,7 +41,7 @@ public function testId() : void
}

/**
* @covers Modules\Tasks\Models\NullAccountRelation
* @covers \Modules\Tasks\Models\NullAccountRelation
* @group module
*/
public function testJsonSerialize() : void
Expand Down
6 changes: 3 additions & 3 deletions tests/Models/NullGroupRelationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
final class NullGroupRelationTest extends \PHPUnit\Framework\TestCase
{
/**
* @covers Modules\Tasks\Models\NullGroupRelation
* @covers \Modules\Tasks\Models\NullGroupRelation
* @group module
*/
public function testNull() : void
Expand All @@ -31,7 +31,7 @@ public function testNull() : void
}

/**
* @covers Modules\Tasks\Models\NullGroupRelation
* @covers \Modules\Tasks\Models\NullGroupRelation
* @group module
*/
public function testId() : void
Expand All @@ -41,7 +41,7 @@ public function testId() : void
}

/**
* @covers Modules\Tasks\Models\NullGroupRelation
* @covers \Modules\Tasks\Models\NullGroupRelation
* @group module
*/
public function testJsonSerialize() : void
Expand Down
6 changes: 3 additions & 3 deletions tests/Models/NullTaskElementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
final class NullTaskElementTest extends \PHPUnit\Framework\TestCase
{
/**
* @covers Modules\Tasks\Models\NullTaskElement
* @covers \Modules\Tasks\Models\NullTaskElement
* @group module
*/
public function testNull() : void
Expand All @@ -31,7 +31,7 @@ public function testNull() : void
}

/**
* @covers Modules\Tasks\Models\NullTaskElement
* @covers \Modules\Tasks\Models\NullTaskElement
* @group module
*/
public function testId() : void
Expand All @@ -41,7 +41,7 @@ public function testId() : void
}

/**
* @covers Modules\Tasks\Models\NullTaskElement
* @covers \Modules\Tasks\Models\NullTaskElement
* @group module
*/
public function testJsonSerialize() : void
Expand Down
6 changes: 3 additions & 3 deletions tests/Models/NullTaskSeenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
final class NullTaskSeenTest extends \PHPUnit\Framework\TestCase
{
/**
* @covers Modules\Tasks\Models\NullTaskSeen
* @covers \Modules\Tasks\Models\NullTaskSeen
* @group module
*/
public function testNull() : void
Expand All @@ -31,7 +31,7 @@ public function testNull() : void
}

/**
* @covers Modules\Tasks\Models\NullTaskSeen
* @covers \Modules\Tasks\Models\NullTaskSeen
* @group module
*/
public function testId() : void
Expand All @@ -41,7 +41,7 @@ public function testId() : void
}

/**
* @covers Modules\Tasks\Models\NullTaskSeen
* @covers \Modules\Tasks\Models\NullTaskSeen
* @group module
*/
public function testJsonSerialize() : void
Expand Down
6 changes: 3 additions & 3 deletions tests/Models/NullTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
final class NullTaskTest extends \PHPUnit\Framework\TestCase
{
/**
* @covers Modules\Tasks\Models\NullTask
* @covers \Modules\Tasks\Models\NullTask
* @group module
*/
public function testNull() : void
Expand All @@ -31,7 +31,7 @@ public function testNull() : void
}

/**
* @covers Modules\Tasks\Models\NullTask
* @covers \Modules\Tasks\Models\NullTask
* @group module
*/
public function testId() : void
Expand All @@ -41,7 +41,7 @@ public function testId() : void
}

/**
* @covers Modules\Tasks\Models\NullTask
* @covers \Modules\Tasks\Models\NullTask
* @group module
*/
public function testJsonSerialize() : void
Expand Down
4 changes: 2 additions & 2 deletions tests/Models/RelationAbstractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function jsonSerialize() : mixed { return []; }
}

/**
* @covers Modules\Tasks\Models\RelationAbstract
* @covers \Modules\Tasks\Models\RelationAbstract
* @group module
*/
public function testDefault() : void
Expand All @@ -48,7 +48,7 @@ public function testDefault() : void
}

/**
* @covers Modules\Tasks\Models\RelationAbstract
* @covers \Modules\Tasks\Models\RelationAbstract
* @group module
*/
public function testDutyInputOutput() : void
Expand Down
Loading

0 comments on commit b345505

Please sign in to comment.