This commit is contained in:
nuno maduro
2026-04-23 10:30:44 -07:00
parent c1feefbb9e
commit 470a5833d4
7 changed files with 589 additions and 28 deletions

View File

@ -10,6 +10,7 @@ use Pest\Panic;
use Pest\Plugins\Tia;
use Pest\Plugins\Tia\BladeEdges;
use Pest\Plugins\Tia\Recorder;
use Pest\Plugins\Tia\TableTracker;
use Pest\Preset;
use Pest\Support\ChainableClosure;
use Pest\Support\Container;
@ -317,14 +318,16 @@ trait Testable
parent::setUp();
// TIA blade-edge recording (Laravel-only). Runs right after
// `parent::setUp()` so the Laravel app exists and the View
// facade is bound; idempotent against the current app instance
// so the 774-test suite doesn't stack 774 composers when Laravel
// TIA blade-edge + table-edge recording (Laravel-only). Runs
// right after `parent::setUp()` so the Laravel app exists and
// the View / DB facades are bound; each arm call is
// idempotent against the current app instance so the 774-test
// suite doesn't stack 774 composers / listeners when Laravel
// keeps the same app across tests.
$recorder = Container::getInstance()->get(Recorder::class);
if ($recorder instanceof Recorder) {
BladeEdges::arm($recorder);
TableTracker::arm($recorder);
}
$beforeEach = TestSuite::getInstance()->beforeEach->get(self::$__filename)[1];