Skip to content

[11.x] Removes references to CreatesApplication #9297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions database-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ Alternatively, you may instruct Laravel to automatically seed the database befor

abstract class TestCase extends BaseTestCase
{
use CreatesApplication;

/**
* Indicates whether the default seeder should run before each test.
*
Expand Down
5 changes: 0 additions & 5 deletions testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ You are free to define other testing environment configuration values as necessa

In addition, you may create a `.env.testing` file in the root of your project. This file will be used instead of the `.env` file when running Pest and PHPUnit tests or executing Artisan commands with the `--env=testing` option.

<a name="the-creates-application-trait"></a>
#### The `CreatesApplication` Trait

Laravel includes a `CreatesApplication` trait that is applied to your application's base `TestCase` class. This trait contains a `createApplication` method that bootstraps the Laravel application before running your tests. It's important that you leave this trait at its original location as some features, such as Laravel's parallel testing feature, depend on it.

<a name="creating-tests"></a>
## Creating Tests

Expand Down
2 changes: 0 additions & 2 deletions vite.md
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,6 @@ use Illuminate\Foundation\Testing\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
{
use CreatesApplication;

protected function setUp(): void// [tl! add:start]
{
parent::setUp();
Expand Down