Skip to content

Commit

Permalink
Merge branch '1.x' into 8.x
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Nov 23, 2023
2 parents e0c670c + 011ef76 commit f3b0f5e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 21 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"laravel/framework": "^10.26",
"laravel/tinker": "^2.8.2",
"orchestra/canvas": "^8.11",
"orchestra/testbench-core": "^8.14",
"orchestra/testbench-core": "^8.15",
"spatie/laravel-ray": "^1.32.4",
"symfony/yaml": "^6.2"
},
Expand Down
15 changes: 5 additions & 10 deletions tests/Http/Controllers/WorkbenchControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@

namespace Orchestra\Workbench\Tests\Http\Controllers;

use Illuminate\Foundation\Testing\RefreshDatabase;
use Orchestra\Testbench\Attributes\WithMigration;
use Orchestra\Testbench\Contracts\Config as ConfigContract;
use Orchestra\Testbench\Factories\UserFactory;
use Orchestra\Testbench\Foundation\Config;
use Orchestra\Testbench\TestCase;
use Orchestra\Workbench\WorkbenchServiceProvider;
use PHPUnit\Framework\Attributes\Test;

#[WithMigration]
class WorkbenchControllerTest extends TestCase
{
use RefreshDatabase;

/**
* Define environment setup.
*
Expand All @@ -36,16 +41,6 @@ protected function defineRoutes($router)
$router->get('/workbench', ['uses' => fn () => 'hello world']);
}

/**
* Define database migrations.
*
* @return void
*/
protected function defineDatabaseMigrations()
{
$this->loadLaravelMigrations(['--database' => 'testing']);
}

/**
* Get package providers.
*
Expand Down
15 changes: 5 additions & 10 deletions tests/Http/Middleware/CatchDefaultRouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@

namespace Orchestra\Workbench\Tests\Http\Middleware;

use Illuminate\Foundation\Testing\RefreshDatabase;
use Orchestra\Testbench\Attributes\WithMigration;
use Orchestra\Testbench\Contracts\Config as ConfigContract;
use Orchestra\Testbench\Factories\UserFactory;
use Orchestra\Testbench\Foundation\Config;
use Orchestra\Testbench\TestCase;
use Orchestra\Workbench\WorkbenchServiceProvider;
use PHPUnit\Framework\Attributes\Test;

#[WithMigration]
class CatchDefaultRouteTest extends TestCase
{
use RefreshDatabase;

/**
* Define environment setup.
*
Expand Down Expand Up @@ -38,16 +43,6 @@ protected function defineRoutes($router)
}]);
}

/**
* Define database migrations.
*
* @return void
*/
protected function defineDatabaseMigrations()
{
$this->loadLaravelMigrations(['--database' => 'testing']);
}

/**
* Get package providers.
*
Expand Down

0 comments on commit f3b0f5e

Please sign in to comment.