diff --git a/.github/workflows/phpunits.yaml b/.github/workflows/phpunits.yaml index adcf73a38..b007de80a 100644 --- a/.github/workflows/phpunits.yaml +++ b/.github/workflows/phpunits.yaml @@ -119,7 +119,7 @@ jobs: - name: Check codeclimate id: codeclimate-check - run: echo "execute=${{ matrix.php-versions == '8.2' && matrix.caches == 'array' && matrix.databases == 'testing' }}" >> $GITHUB_OUTPUT + run: echo "execute=${{ matrix.php-versions == '8.3' && matrix.caches == 'array' && matrix.locks == 'redis' && matrix.databases == 'testing' }}" >> $GITHUB_OUTPUT - name: Prepare codeclimate id: codeclimate-prepare @@ -137,11 +137,7 @@ jobs: - name: Run test suite id: unit-run run: | - if [[ $DB_CONNECTION == "mariadb" ]]; then - composer unit - else - composer parabench - fi + composer parabench env: WALLET_CACHE_DRIVER: ${{ matrix.caches }} WALLET_LOCK_DRIVER: ${{ matrix.locks }} diff --git a/composer.json b/composer.json index 2d6e4212a..953611257 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,6 @@ "ramsey/uuid": "^4.0" }, "require-dev": { - "brianium/paratest": "^7.4", "driftingly/rector-laravel": "^1.0", "ergebnis/phpstan-rules": "^2.1", "infection/infection": "~0.27", @@ -62,8 +61,6 @@ }, "scripts": { "docs": "@php -S localhost:3000 -t ./docs", - "unit":"@php vendor/bin/phpunit --coverage-xml=build/coverage-xml --log-junit=build/junit.xml", - "paraunit":"@php vendor/bin/paratest --coverage-xml=build/coverage-xml --log-junit=build/junit.xml", "parabench":"@php ./vendor/bin/testbench package:test --coverage-xml=build/coverage-xml --log-junit=build/junit.xml", "infect": "@php vendor/bin/infection --coverage=build --min-msi=50 -j$(nproc) --only-covering-test-cases", "phpstan": ["@phpstan-src", "@phpstan-tests"], diff --git a/tests/Infra/Models/ItemMultiPrice.php b/tests/Infra/Models/ItemMultiPrice.php index 11d6f1c45..ceaac0bb4 100644 --- a/tests/Infra/Models/ItemMultiPrice.php +++ b/tests/Infra/Models/ItemMultiPrice.php @@ -62,6 +62,9 @@ public function getMetaProduct(): ?array return null; } + /** + * @return array + */ protected function casts(): array { return [