diff --git a/src/Auth/InteractsWithAuthorization.php b/src/Auth/InteractsWithAuthorization.php index d539e3e..96183fd 100644 --- a/src/Auth/InteractsWithAuthorization.php +++ b/src/Auth/InteractsWithAuthorization.php @@ -5,9 +5,6 @@ use Illuminate\Contracts\Auth\Access\Gate; use PHPUnit\Framework\Assert as PHPUnit; -/** - * @internal - */ trait InteractsWithAuthorization { /** diff --git a/src/Http/Requests/PendingTestFormRequest.php b/src/Http/Requests/PendingTestFormRequest.php index cdfba76..1502ebd 100644 --- a/src/Http/Requests/PendingTestFormRequest.php +++ b/src/Http/Requests/PendingTestFormRequest.php @@ -5,6 +5,7 @@ use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Contracts\Auth\Authenticatable as UserContract; use Illuminate\Foundation\Http\FormRequest; +use Illuminate\Support\Traits\ForwardsCalls; use Illuminate\Validation\ValidationException; use Orchestra\Testbench\TestCase; use PHPUnit\Framework\Assert as PHPUnit; @@ -14,10 +15,12 @@ /** * @template TForm of \Illuminate\Foundation\Http\FormRequest * - * @internal + * @mixin TForm */ class PendingTestFormRequest { + use ForwardsCalls; + /** * Create a new Pending Test. */ @@ -182,4 +185,12 @@ public function assertFormData(array $data): static return $this; } + + /** + * Dynamically handle calls to the underlying Form Request. + */ + public function __call(string $name, array $arguments): mixed + { + return $this->forwardCallTo($this->request, $name, $arguments); + } } diff --git a/src/InteractsWithServices.php b/src/InteractsWithServices.php index 323eb7e..71a6e9e 100644 --- a/src/InteractsWithServices.php +++ b/src/InteractsWithServices.php @@ -8,9 +8,6 @@ use function tap; -/** - * @internal - */ trait InteractsWithServices { /** diff --git a/src/Validation/InteractsWithValidator.php b/src/Validation/InteractsWithValidator.php index 3efdcfc..48858f5 100644 --- a/src/Validation/InteractsWithValidator.php +++ b/src/Validation/InteractsWithValidator.php @@ -4,9 +4,6 @@ use function is_array; -/** - * @internal - */ trait InteractsWithValidator { /**