-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mior Muhammad Zaki <[email protected]>
- Loading branch information
Showing
10 changed files
with
109 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
providers: | ||
- Workbench\App\Providers\RouteServiceProvider | ||
|
||
migrations: | ||
- workbench/database/migrations | ||
|
||
workbench: | ||
start: '/' | ||
welcome: true | ||
build: | ||
- drop-sqlite-db | ||
- create-sqlite-db | ||
- migrate:refresh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace Orchestra\Testbench\Dusk\Tests\Browser; | ||
|
||
use Illuminate\Contracts\Http\Kernel as HttpKernel; | ||
use Orchestra\Testbench\Concerns\WithWorkbench; | ||
use Orchestra\Testbench\Dusk\TestCase; | ||
use Orchestra\Workbench\Http\Middleware\CatchDefaultRoute; | ||
|
||
class WorkbenchTest extends TestCase | ||
{ | ||
use WithWorkbench; | ||
|
||
/** @test */ | ||
public function it_can_browse_the_default_page() | ||
{ | ||
$this->beforeServingApplication(function ($app) { | ||
$app->make(HttpKernel::class)->pushMiddleware(CatchDefaultRoute::class); | ||
}); | ||
|
||
$this->browse(function ($browser) { | ||
$browser->visit('/') | ||
->assertSee('Laravel'); | ||
}); | ||
} | ||
|
||
/** @test */ | ||
public function it_can_browse_the_welcome_page() | ||
{ | ||
$this->browse(function ($browser) { | ||
$browser->visit('/welcome') | ||
->assertSee('Laravel'); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Workbench\App\Providers; | ||
|
||
use Illuminate\Support\Facades\Route; | ||
use Illuminate\Support\ServiceProvider; | ||
|
||
class RouteServiceProvider extends ServiceProvider | ||
{ | ||
/** | ||
* Register services. | ||
* | ||
* @return void | ||
*/ | ||
public function register() | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Bootstrap services. | ||
* | ||
* @return void | ||
*/ | ||
public function boot() | ||
{ | ||
Route::view('welcome', 'welcome'); | ||
} | ||
} |