Skip to content

Commit

Permalink
Merge branch '8.x' into 9.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 Jan 12, 2024
2 parents b19075a + 54f1253 commit 2be97ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},
"autoload-dev": {
"psr-4": {
"Orchestra\\Testbench\\BrowserKit\\Tests\\": "tests/"
"Orchestra\\Testbench\\BrowserKit\\Tests\\": "tests/",
"Workbench\\App\\": "workbench/app/"
}
},
"require": {
Expand Down
5 changes: 3 additions & 2 deletions tests/RouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Illuminate\Routing\Router;
use Orchestra\Testbench\BrowserKit\TestCase;
use PHPUnit\Framework\Attributes\Test;
use Workbench\App\Http\Controllers\Controller;

class RouteTest extends TestCase
{
Expand Down Expand Up @@ -34,7 +35,7 @@ protected function defineRoutes($router)
})->name('boss.bye');
});

$router->resource('foo', 'Orchestra\Testbench\BrowserKit\Tests\Stubs\Controller');
$router->resource('foo', Controller::class);
}

#[Test]
Expand Down Expand Up @@ -88,7 +89,7 @@ public function canSendRequestWithPrefixViaNamedRoute()
#[Test]
public function canSendRequestUsingActionHelper()
{
$crawler = $this->action('GET', 'Orchestra\Testbench\BrowserKit\Tests\Stubs\Controller@index');
$crawler = $this->action('GET', sprintf('%s@index', Controller::class));

$this->assertResponseOk();
$this->assertEquals('Controller@index', $crawler->getContent());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Orchestra\Testbench\BrowserKit\Tests\Stubs;
namespace Workbench\App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Routing\Controller as BaseController;
Expand Down

0 comments on commit 2be97ad

Please sign in to comment.