Skip to content

Commit

Permalink
wip
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 8, 2024
1 parent 52a0f38 commit 54f1253
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
},
"autoload-dev": {
"psr-4": {
"Orchestra\\Testbench\\BrowserKit\\Tests\\": "tests/"
"Orchestra\\Testbench\\BrowserKit\\Tests\\": "tests/",
"Workbench\\App\\": "workbench/app/"
}
},
"require": {
"php": "^8.1",
"laravel/browser-kit-testing": "^6.4 || ^7.0",
"orchestra/testbench": "^8.16",
"orchestra/testbench": "^8.20",
"symfony/dom-crawler": "^6.2"
},
"require-dev": {
Expand Down Expand Up @@ -52,5 +53,6 @@
"config": {
"sort-packages": true
},
"minimum-stability": "stable"
"prefer-stable": true,
"minimum-stability": "dev"
}
5 changes: 3 additions & 2 deletions tests/RouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Illuminate\Routing\Router;
use Orchestra\Testbench\BrowserKit\TestCase;
use Workbench\App\Http\Controllers\Controller;

class RouteTest extends TestCase
{
Expand Down Expand Up @@ -33,7 +34,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 @@ -87,7 +88,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 54f1253

Please sign in to comment.