mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-26 06:16:12 +01:00
[TASK] Upgrade to PHPUnit 9 (#610)
Also upgrade PHPCOV to match the used PHPUnit version Fixes #586 Fixes #542
This commit is contained in:
parent
26f8898e92
commit
f6af430180
6 changed files with 82054 additions and 63361 deletions
2
.github/dependabot.yml
vendored
2
.github/dependabot.yml
vendored
|
@ -16,7 +16,7 @@ updates:
|
||||||
- dependency-type: "development"
|
- dependency-type: "development"
|
||||||
ignore:
|
ignore:
|
||||||
- dependency-name: "phpunit/phpunit"
|
- dependency-name: "phpunit/phpunit"
|
||||||
versions: [ "^9.0", "^10.0" ]
|
versions: [ "^10.0" ]
|
||||||
- dependency-name: "symfony/yaml"
|
- dependency-name: "symfony/yaml"
|
||||||
- dependency-name: "typo3/cms-*"
|
- dependency-name: "typo3/cms-*"
|
||||||
versioning-strategy: "increase"
|
versioning-strategy: "increase"
|
||||||
|
|
|
@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||||
namespace TTN\Tea\Tests\Unit\Controller;
|
namespace TTN\Tea\Tests\Unit\Controller;
|
||||||
|
|
||||||
use PHPUnit\Framework\MockObject\MockObject;
|
use PHPUnit\Framework\MockObject\MockObject;
|
||||||
|
use Prophecy\PhpUnit\ProphecyTrait;
|
||||||
use Prophecy\Prophecy\ObjectProphecy;
|
use Prophecy\Prophecy\ObjectProphecy;
|
||||||
use Prophecy\Prophecy\ProphecySubjectInterface;
|
use Prophecy\Prophecy\ProphecySubjectInterface;
|
||||||
use TTN\Tea\Controller\TeaController;
|
use TTN\Tea\Controller\TeaController;
|
||||||
|
@ -22,6 +23,8 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
|
||||||
*/
|
*/
|
||||||
class TeaControllerTest extends UnitTestCase
|
class TeaControllerTest extends UnitTestCase
|
||||||
{
|
{
|
||||||
|
use ProphecyTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var TeaController&MockObject&AccessibleObjectInterface
|
* @var TeaController&MockObject&AccessibleObjectInterface
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace TTN\Tea\Tests\Unit\Domain\Repository\Product;
|
namespace TTN\Tea\Tests\Unit\Domain\Repository\Product;
|
||||||
|
|
||||||
|
use Prophecy\PhpUnit\ProphecyTrait;
|
||||||
use TTN\Tea\Domain\Repository\Product\TeaRepository;
|
use TTN\Tea\Domain\Repository\Product\TeaRepository;
|
||||||
use TYPO3\CMS\Extbase\Object\ObjectManagerInterface;
|
use TYPO3\CMS\Extbase\Object\ObjectManagerInterface;
|
||||||
use TYPO3\CMS\Extbase\Persistence\Repository;
|
use TYPO3\CMS\Extbase\Persistence\Repository;
|
||||||
|
@ -14,6 +15,8 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
|
||||||
*/
|
*/
|
||||||
class TeaRepositoryTest extends UnitTestCase
|
class TeaRepositoryTest extends UnitTestCase
|
||||||
{
|
{
|
||||||
|
use ProphecyTrait;
|
||||||
|
|
||||||
private TeaRepository $subject;
|
private TeaRepository $subject;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
|
|
|
@ -42,11 +42,12 @@
|
||||||
"jangregor/phpstan-prophecy": "^1.0.0",
|
"jangregor/phpstan-prophecy": "^1.0.0",
|
||||||
"php-coveralls/php-coveralls": "^2.5.3",
|
"php-coveralls/php-coveralls": "^2.5.3",
|
||||||
"phpspec/prophecy": "^1.15.0",
|
"phpspec/prophecy": "^1.15.0",
|
||||||
|
"phpspec/prophecy-phpunit": "2.0.1",
|
||||||
"phpstan/extension-installer": "^1.1.0",
|
"phpstan/extension-installer": "^1.1.0",
|
||||||
"phpstan/phpstan": "^1.8.8",
|
"phpstan/phpstan": "^1.8.8",
|
||||||
"phpstan/phpstan-phpunit": "^1.1.1",
|
"phpstan/phpstan-phpunit": "^1.1.1",
|
||||||
"phpstan/phpstan-strict-rules": "^1.4.4",
|
"phpstan/phpstan-strict-rules": "^1.4.4",
|
||||||
"phpunit/phpunit": "^8.5.30",
|
"phpunit/phpunit": "^9.5.25",
|
||||||
"saschaegerer/phpstan-typo3": "^1.1.2",
|
"saschaegerer/phpstan-typo3": "^1.1.2",
|
||||||
"seld/jsonlint": "^1.9.0",
|
"seld/jsonlint": "^1.9.0",
|
||||||
"squizlabs/php_codesniffer": "^3.7.1",
|
"squizlabs/php_codesniffer": "^3.7.1",
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
<phive xmlns="https://phar.io/phive">
|
<phive xmlns="https://phar.io/phive">
|
||||||
<phar name="phar-io/phive" version="^0.15.2" installed="0.15.2" location="./tools/phive" copy="true"/>
|
<phar name="phar-io/phive" version="^0.15.2" installed="0.15.2" location="./tools/phive" copy="true"/>
|
||||||
<phar name="phpcpd" version="^6.0.3" installed="6.0.3" location="./tools/phpcpd" copy="true"/>
|
<phar name="phpcpd" version="^6.0.3" installed="6.0.3" location="./tools/phpcpd" copy="true"/>
|
||||||
<phar name="phpcov" version="^6.0.1" installed="6.0.1" location="./tools/phpcov" copy="true"/>
|
<phar name="phpcov" version="^8.2.1" installed="8.2.1" location="./tools/phpcov" copy="true"/>
|
||||||
</phive>
|
</phive>
|
||||||
|
|
146230
tools/phpcov
146230
tools/phpcov
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue