in('Feature'); uses( Tests\TestCase::class, )->in('Unit'); /* |-------------------------------------------------------------------------- | Expectations Custom Helpers |-------------------------------------------------------------------------- | | Tạo các custom expectation mở rộng của Pest nếu cần. | */ expect()->extend('toBeValidEmail', function () { return $this->toBeString()->toMatch('/^.+@.+\..+$/'); }); /* |-------------------------------------------------------------------------- | Functions Helpers |-------------------------------------------------------------------------- | | Hàm global hỗ trợ khởi tạo dữ liệu giả lập cho test. | */ // function asUser($user = null) { // return test()->actingAs($user ?? User::factory()->create()); // }