diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 116c897..6af16a8 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -40,7 +40,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - extensions: mbstring, intl, bcmath, sqlite, pdo_${{ matrix.db-type }} + extensions: mbstring, intl, bcmath, sqlite, apcu, pdo_${{ matrix.db-type }} coverage: pcov - name: Get composer cache directory diff --git a/composer.json b/composer.json index c222728..f32290d 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "josegonzalez/dotenv": "^4.0", "php-collective/decimal-object": "^1.3", "phpstan/phpstan": "^2.1", - "phpunit/phpunit": "^10.5.5 || ^11.1.3 || ^12.1" + "phpunit/phpunit": "^10.3" }, "autoload": { "psr-4": { diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 9776e6a..f607d9e 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -6,19 +6,7 @@ use Cake\Core\Configure; //use Cake\TestSuite\Fixture\SchemaLoader; define('PLUGIN_ROOT', dirname(__DIR__)); -define('ROOT', PLUGIN_ROOT . DS . 'tests' . DS . 'test_app'); -define('TMP', PLUGIN_ROOT . DS . 'tmp' . DS); -define('LOGS', TMP . 'logs' . DS); -define('CACHE', TMP . 'cache' . DS); -define('APP', ROOT . DS . 'src' . DS); -define('APP_DIR', 'src'); -define('CAKE_CORE_INCLUDE_PATH', PLUGIN_ROOT . '/vendor/cakephp/cakephp'); -define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS); -define('CAKE', CORE_PATH . APP_DIR . DS); - -define('WWW_ROOT', PLUGIN_ROOT . DS . 'webroot' . DS); define('TESTS', __DIR__ . DS); -define('CONFIG', TESTS . 'config' . DS); ini_set('intl.default_locale', 'en-US');