test: fix TestCase to use Orchestra Testbench for CI
This commit is contained in:
parent
84e01156c8
commit
bd4837a46d
2 changed files with 25 additions and 5 deletions
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue