test: fix TestCase to use Orchestra Testbench for CI
Some checks failed
CI / PHP 8.3 (push) Failing after 1m50s
CI / PHP 8.4 (push) Failing after 1m35s

This commit is contained in:
Claude 2026-02-23 06:18:30 +00:00
parent 84e01156c8
commit bd4837a46d
2 changed files with 25 additions and 5 deletions

View file

@ -1,7 +1,12 @@
{
"name": "host-uk/core-content",
"description": "Content management and headless CMS for Laravel",
"keywords": ["laravel", "content", "cms", "headless"],
"keywords": [
"laravel",
"content",
"cms",
"headless"
],
"license": "EUPL-1.2",
"require": {
"php": "^8.2",
@ -20,7 +25,8 @@
},
"autoload-dev": {
"psr-4": {
"Core\\Mod\\Content\\Tests\\": "Tests/"
"Core\\Mod\\Content\\Tests\\": "Tests/",
"Tests\\": "tests/"
}
},
"extra": {
@ -41,5 +47,12 @@
}
},
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true,
"repositories": [
{
"name": "core",
"type": "path",
"url": "../php-framework"
}
]
}

View file

@ -1,10 +1,17 @@
<?php
declare(strict_types=1);
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use Orchestra\Testbench\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
//
protected function getPackageProviders($app): array
{
return [
\Core\Mod\Content\Boot::class,
];
}
}