Skip to content

Commit

Permalink
deprecate(testing): `LastDragon_ru\LaraASP\Testing\Database\RefreshDa…
Browse files Browse the repository at this point in the history
…tabaseIfEmpty` (use own trait instead).
  • Loading branch information
LastDragon-ru committed Mar 21, 2024
1 parent db17969 commit dd6a34e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Makes comparison of scalars strict.

## PHPUnit `TestCase`

### [`RefreshDatabaseIfEmpty`](./src/Database/RefreshDatabaseIfEmpty.php)
### [`RefreshDatabaseIfEmpty`](./src/Database/RefreshDatabaseIfEmpty.php) 💀

[include:docblock]: ./src/Database/RefreshDatabaseIfEmpty.php
[//]: # (start: 8a2c47eb73624557058f09279338b44619ddc48d2bd07d975721ad9383bd1df3)
Expand Down
3 changes: 1 addition & 2 deletions packages/testing/src/Database/RefreshDatabaseIfEmpty.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Illuminate\Container\Container;
use Illuminate\Database\DatabaseManager;
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\RefreshDatabaseState;
use PHPUnit\Framework\TestCase;
Expand All @@ -14,7 +13,7 @@
* difference: it will refresh the database only if it is empty. This is very
* useful for local testing and allow significantly reduce bootstrap time.
*
* @property-read Application $app
* @deprecated ${version} Please use own trait.
*
* @phpstan-require-extends TestCase
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Symfony\Component\HttpKernel\HttpKernelInterface;

/**
* @deprecated ${version}
* @internal
*/
#[CoversClass(RefreshDatabaseIfEmpty::class)]
Expand Down

0 comments on commit dd6a34e

Please sign in to comment.