-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proof of concept of integration testing the framework itself.
This leverages the test bench package to integration test the framework itself using a dummy application, allowing for richer integration tests.
- Loading branch information
1 parent
3aa2adc
commit 182027d
Showing
5 changed files
with
28 additions
and
3 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 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,20 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Route; | ||
|
||
/** | ||
* @group integration | ||
*/ | ||
class IntegrationTest extends Orchestra\Testbench\TestCase | ||
{ | ||
public function test_simple_route_through_the_framework() | ||
{ | ||
Route::get('/', function () { | ||
return 'Hello World'; | ||
}); | ||
|
||
$response = $this->get('/'); | ||
|
||
$this->assertEquals('Hello World', $response->content()); | ||
} | ||
} |
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
Wonders what would be the different between
"5.5.*"
or"self.version"
.