Skip to content

Commit

Permalink
php84 + phpunit 11
Browse files Browse the repository at this point in the history
  • Loading branch information
sl0wik committed Nov 29, 2024
1 parent 6db4b91 commit 4c0276f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
- name: Installing dependencies
uses: php-actions/composer@v6
with:
php_version: 8.1
php_version: 8.4
- name: Running unit test
uses: php-actions/phpunit@v3
with:
version: 9.6
php_version: 8.1
version: 11.0
php_version: 8.4
19 changes: 9 additions & 10 deletions tests/FirevelGeneratorManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@ protected function setUp(): void

$this->manager = new FirevelGeneratorManager();

Config::shouldReceive('get')
->with('generator.pipelines', [])
->andReturn([
'api-resource' => [
'model' => \Firevel\Generator\Generators\ApiResource\ModelGenerator::class,
],
'app.yaml' => [
'yaml' => \Firevel\Generator\Generators\App\YamlGenerator::class,
],
]);
$config = [
'api-resource' => [
'model' => \Firevel\Generator\Generators\ApiResource\ModelGenerator::class,
],
'app.yaml' => [
'yaml' => \Firevel\Generator\Generators\App\YamlGenerator::class,
],
];
Config::set('generator.pipelines', $config);
}

public function testExtendRegistersPipeline()
Expand Down
19 changes: 19 additions & 0 deletions workbench/bootstrap/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;

use function Orchestra\Testbench\default_skeleton_path;

return Application::configure(basePath: $APP_BASE_PATH ?? default_skeleton_path())
->withRouting(
web: __DIR__.'/../routes/web.php',
commands: __DIR__.'/../routes/console.php',
)
->withMiddleware(function (Middleware $middleware) {
//
})
->withExceptions(function (Exceptions $exceptions) {
//
})->create();

0 comments on commit 4c0276f

Please sign in to comment.