• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

orchestral / testbench-core / 7325616685

26 Dec 2023 01:26AM UTC coverage: 91.277% (+0.1%) from 91.132%
7325616685

push

github

crynobone
wip

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>

2 of 4 new or added lines in 2 files covered. (50.0%)

1151 of 1261 relevant lines covered (91.28%)

49.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/src/Attributes/ResetRefreshDatabaseState.php
1
<?php
2

3
namespace Orchestra\Testbench\Attributes;
4

5
use Attribute;
6
use Illuminate\Foundation\Testing\RefreshDatabaseState;
7
use Orchestra\Testbench\Contracts\Attributes\AfterAll as AfterAllContract;
8
use Orchestra\Testbench\Contracts\Attributes\BeforeAll as BeforeAllContract;
9

10
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
11
final class ResetRefreshDatabaseState implements AfterAllContract, BeforeAllContract
12
{
13
    /**
14
     * Handle the attribute.
15
     */
16
    public function beforeAll(): void
17
    {
NEW
18
        self::run();
×
19
    }
20

21
    /**
22
     * Handle the attribute.
23
     */
24
    public function afterAll(): void
25
    {
NEW
26
        self::run();
×
27
    }
28

29
    /**
30
     * Execute the action.
31
     *
32
     * @return void
33
     */
34
    public static function run(): void
35
    {
36
        RefreshDatabaseState::$migrated = false;
2✔
37
        RefreshDatabaseState::$lazilyRefreshed = false;
2✔
38
    }
39
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc