diff --git a/packages/actions/.stubs.php b/packages/actions/.stubs.php index 05d2cac536..612bd46640 100644 --- a/packages/actions/.stubs.php +++ b/packages/actions/.stubs.php @@ -2,63 +2,153 @@ namespace Livewire\Features\SupportTesting { + /** + * @template-covariant T of object + */ class Testable { - public function mountAction(string | array $name, array $arguments = []): static {} - - public function unmountAction(): static {} - - public function setActionData(array $data): static {} - - public function assertActionDataSet(array $data): static {} - - public function callAction(string | array $name, array $data = [], array $arguments = []): static {} - - public function callMountedAction(array $arguments = []): static {} - - public function assertActionExists(string | array $name): static {} - - public function assertActionDoesNotExist(string | array $name): static {} - - public function assertActionVisible(string | array $name, array $arguments = []): static {} - - public function assertActionHidden(string | array $name, array $arguments = []): static {} - - public function assertActionEnabled(string | array $name): static {} - - public function assertActionDisabled(string | array $name): static {} - - public function assertActionHasIcon(string | array $name, string $icon): static {} - - public function assertActionDoesNotHaveIcon(string | array $name, string $icon): static {} - - public function assertActionHasLabel(string | array $name, string $label): static {} - - public function assertActionHasColor(string | array $name, string $color): static {} - - public function assertActionDoesNotHaveColor(string | array $name, string $color): static {} - - public function assertActionHasUrl(string | array $name, string $url): static {} - - public function assertActionDoesNotHaveUrl(string | array $name, string $url): static {} - - public function assertActionShouldOpenUrlInNewTab(string | array $name): static {} - - public function assertActionShouldNotOpenUrlInNewTab(string | array $name): static {} - - public function assertActionDoesNotHaveLabel(string | array $name, string $label): static {} - - public function assertActionMounted(string | array $name): static {} - - public function assertActionNotMounted(string | array $name): static {} - - public function assertActionHalted(string | array $name): static {} - - public function assertHasActionErrors(array $keys = []): static {} - - public function assertHasNoActionErrors(array $keys = []): static {} - + /** + * @return T + */ + public function mountAction(string | array $name, array $arguments = []) {} + + /** + * @return T + */ + public function unmountAction() {} + + /** + * @return T + */ + public function setActionData(array $data) {} + + /** + * @return T + */ + public function assertActionDataSet(array $data) {} + + /** + * @return T + */ + public function callAction(string | array $name, array $data = [], array $arguments = []) {} + + /** + * @return T + */ + public function callMountedAction(array $arguments = []) {} + + /** + * @return T + */ + public function assertActionExists(string | array $name) {} + + /** + * @return T + */ + public function assertActionDoesNotExist(string | array $name) {} + + /** + * @return T + */ + public function assertActionVisible(string | array $name, array $arguments = []) {} + + /** + * @return T + */ + public function assertActionHidden(string | array $name, array $arguments = []) {} + + /** + * @return T + */ + public function assertActionEnabled(string | array $name) {} + + /** + * @return T + */ + public function assertActionDisabled(string | array $name) {} + + /** + * @return T + */ + public function assertActionHasIcon(string | array $name, string $icon) {} + + /** + * @return T + */ + public function assertActionDoesNotHaveIcon(string | array $name, string $icon) {} + + /** + * @return T + */ + public function assertActionHasLabel(string | array $name, string $label) {} + + /** + * @return T + */ + public function assertActionHasColor(string | array $name, string $color) {} + + /** + * @return T + */ + public function assertActionDoesNotHaveColor(string | array $name, string $color) {} + + /** + * @return T + */ + public function assertActionHasUrl(string | array $name, string $url) {} + + /** + * @return T + */ + public function assertActionDoesNotHaveUrl(string | array $name, string $url) {} + + /** + * @return T + */ + public function assertActionShouldOpenUrlInNewTab(string | array $name) {} + + /** + * @return T + */ + public function assertActionShouldNotOpenUrlInNewTab(string | array $name) {} + + /** + * @return T + */ + public function assertActionDoesNotHaveLabel(string | array $name, string $label) {} + + /** + * @return T + */ + public function assertActionMounted(string | array $name) {} + + /** + * @return T + */ + public function assertActionNotMounted(string | array $name) {} + + /** + * @return T + */ + public function assertActionHalted(string | array $name) {} + + /** + * @return T + */ + public function assertHasActionErrors(array $keys = []) {} + + /** + * @return T + */ + public function assertHasNoActionErrors(array $keys = []) {} + + /** + * @return T + */ public function parseActionName(string | array $name): string {} + /** + * @return T + */ public function parseNestedActionName(string | array $name): array {} } diff --git a/packages/forms/.stubs.php b/packages/forms/.stubs.php index 0a286cb12f..e40e2a33f7 100644 --- a/packages/forms/.stubs.php +++ b/packages/forms/.stubs.php @@ -4,100 +4,244 @@ use Closure; + /** + * @template-covariant T of object + */ class Testable { - public function fillForm(array | Closure $state = [], string $formName = 'form'): static {} - - public function assertFormSet(array | Closure $state, string $formName = 'form'): static {} - - public function assertHasFormErrors(array $keys = [], string $formName = 'form'): static {} - - public function assertHasNoFormErrors(array $keys = [], string $formName = 'form'): static {} - - public function assertFormExists(string | array $name = 'form'): static {} - - public function assertFormFieldExists(string $fieldName, string | Closure $formName = 'form', ?Closure $checkFieldUsing = null): static {} - - public function assertFormFieldDoesNotExist(string $fieldName, string $formName = 'form'): static {} - - public function assertFormFieldIsDisabled(string $fieldName, string $formName = 'form'): static {} - - public function assertFormFieldIsEnabled(string $fieldName, string $formName = 'form'): static {} - - public function assertFormFieldIsHidden(string $fieldName, string $formName = 'form'): static {} - - public function assertFormFieldIsVisible(string $fieldName, string $formName = 'form'): static {} - - public function assertFormComponentExists(string $componentKey, string | Closure $formName = 'form', ?Closure $checkComponentUsing = null): static {} - - public function assertFormComponentDoesNotExist(string $componentKey, string $formName = 'form'): static {} - - public function mountFormComponentAction(string | array $component, string | array $name, array $arguments = [], string $formName = 'form'): static {} - - public function unmountFormComponentAction(): static {} - - public function setFormComponentActionData(array $data): static {} - - public function assertFormComponentActionDataSet(array $data): static {} - - public function callFormComponentAction(string | array $component, string | array $name, array $data = [], array $arguments = [], string $formName = 'form'): static {} - - public function callMountedFormComponentAction(array $arguments = []): static {} - - public function assertFormComponentActionExists(string | array $component, string | array $name, string $formName = 'form'): static {} - - public function assertFormComponentActionDoesNotExist(string | array $component, string | array $name, string $formName = 'form'): static {} - - public function assertFormComponentActionVisible(string | array $component, string | array $name, array $arguments = [], string $formName = 'form'): static {} - - public function assertFormComponentActionHidden(string | array $component, string | array $name, array $arguments = [], string $formName = 'form'): static {} - - public function assertFormComponentActionEnabled(string | array $component, string | array $name, array $arguments = [], string $formName = 'form'): static {} - - public function assertFormComponentActionDisabled(string | array $component, string | array $name, array $arguments = [], string $formName = 'form'): static {} - - public function assertFormComponentActionMounted(string | array $component, string | array $name, string $formName = 'form'): static {} - - public function assertFormComponentActionNotMounted(string | array $component, string | array $name, string $formName = 'form'): static {} - - public function assertFormComponentActionHalted(string | array $component, string | array $name, string $formName = 'form'): static {} - - public function assertHasFormComponentActionErrors(array $keys = []): static {} - - public function assertHasNoFormComponentActionErrors(array $keys = []): static {} - - public function assertFormComponentActionHasIcon(string | array $component, string | array $name, string $icon, array $arguments = [], string $formName = 'form'): static {} - - public function assertFormComponentActionDoesNotHaveIcon(string | array $component, string | array $name, string $icon, array $arguments = [], string $formName = 'form'): static {} - - public function assertFormComponentActionHasLabel(string | array $component, string | array $name, string $label, array $arguments = [], string $formName = 'form'): static {} - - public function assertFormComponentActionDoesNotHaveLabel(string | array $component, string | array $name, string $label, array $arguments = [], string $formName = 'form'): static {} - - public function assertFormComponentActionHasColor(string | array $component, string | array $name, string | array $color, array $arguments = [], string $formName = 'form'): static {} - - public function assertFormComponentActionDoesNotHaveColor(string | array $component, string | array $name, string | array $color, array $arguments = [], string $formName = 'form'): static {} - - public function assertFormComponentActionHasUrl(string | array $component, string | array $name, string $url, array $arguments = [], string $formName = 'form'): static {} - - public function assertFormComponentActionDoesNotHaveUrl(string | array $component, string | array $name, string $url, array $arguments = [], string $formName = 'form'): static {} - - public function assertFormComponentActionShouldOpenUrlInNewTab(string | array $component, string | array $name, array $arguments = [], string $formName = 'form'): static {} - - public function assertFormComponentActionShouldNotOpenUrlInNewTab(string | array $component, string | array $name, array $arguments = [], string $formName = 'form'): static {} - - public function getNestedFormComponentActionComponentAndName(string | array $component, string | array $name, string $formName = 'form'): static {} - - public function parseNestedFormComponentActionComponentAndName(string | array $component, string | array $name, string $formName = 'form'): static {} - - public function goToWizardStep(int $step, string $formName = 'form'): static {} - - public function goToNextWizardStep(string $formName = 'form'): static {} - - public function goToPreviousWizardStep(string $formName = 'form'): static {} - - public function assertWizardStepExists(int $step, string $formName = 'form'): static {} - - public function assertWizardCurrentStep(int $step, string $formName = 'form'): static {} + /** + * @return T + */ + public function fillForm(array | Closure $state = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormSet(array | Closure $state, string $formName = 'form') {} + + /** + * @return T + */ + public function assertHasFormErrors(array $keys = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertHasNoFormErrors(array $keys = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormExists(string | array $name = 'form') {} + + /** + * @return T + */ + public function assertFormFieldExists(string $fieldName, string | Closure $formName = 'form', ?Closure $checkFieldUsing = null) {} + + /** + * @return T + */ + public function assertFormFieldDoesNotExist(string $fieldName, string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormFieldIsDisabled(string $fieldName, string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormFieldIsEnabled(string $fieldName, string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormFieldIsHidden(string $fieldName, string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormFieldIsVisible(string $fieldName, string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentExists(string $componentKey, string | Closure $formName = 'form', ?Closure $checkComponentUsing = null) {} + + /** + * @return T + */ + public function assertFormComponentDoesNotExist(string $componentKey, string $formName = 'form') {} + + /** + * @return T + */ + public function mountFormComponentAction(string | array $component, string | array $name, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function unmountFormComponentAction() {} + + /** + * @return T + */ + public function setFormComponentActionData(array $data) {} + + /** + * @return T + */ + public function assertFormComponentActionDataSet(array $data) {} + + /** + * @return T + */ + public function callFormComponentAction(string | array $component, string | array $name, array $data = [], array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function callMountedFormComponentAction(array $arguments = []) {} + + /** + * @return T + */ + public function assertFormComponentActionExists(string | array $component, string | array $name, string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionDoesNotExist(string | array $component, string | array $name, string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionVisible(string | array $component, string | array $name, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionHidden(string | array $component, string | array $name, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionEnabled(string | array $component, string | array $name, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionDisabled(string | array $component, string | array $name, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionMounted(string | array $component, string | array $name, string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionNotMounted(string | array $component, string | array $name, string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionHalted(string | array $component, string | array $name, string $formName = 'form') {} + + /** + * @return T + */ + public function assertHasFormComponentActionErrors(array $keys = []) {} + + /** + * @return T + */ + public function assertHasNoFormComponentActionErrors(array $keys = []) {} + + /** + * @return T + */ + public function assertFormComponentActionHasIcon(string | array $component, string | array $name, string $icon, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionDoesNotHaveIcon(string | array $component, string | array $name, string $icon, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionHasLabel(string | array $component, string | array $name, string $label, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionDoesNotHaveLabel(string | array $component, string | array $name, string $label, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionHasColor(string | array $component, string | array $name, string | array $color, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionDoesNotHaveColor(string | array $component, string | array $name, string | array $color, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionHasUrl(string | array $component, string | array $name, string $url, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionDoesNotHaveUrl(string | array $component, string | array $name, string $url, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionShouldOpenUrlInNewTab(string | array $component, string | array $name, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function assertFormComponentActionShouldNotOpenUrlInNewTab(string | array $component, string | array $name, array $arguments = [], string $formName = 'form') {} + + /** + * @return T + */ + public function getNestedFormComponentActionComponentAndName(string | array $component, string | array $name, string $formName = 'form') {} + + /** + * @return T + */ + public function parseNestedFormComponentActionComponentAndName(string | array $component, string | array $name, string $formName = 'form') {} + + /** + * @return T + */ + public function goToWizardStep(int $step, string $formName = 'form') {} + + /** + * @return T + */ + public function goToNextWizardStep(string $formName = 'form') {} + + /** + * @return T + */ + public function goToPreviousWizardStep(string $formName = 'form') {} + + /** + * @return T + */ + public function assertWizardStepExists(int $step, string $formName = 'form') {} + + /** + * @return T + */ + public function assertWizardCurrentStep(int $step, string $formName = 'form') {} } } diff --git a/packages/infolists/.stubs.php b/packages/infolists/.stubs.php index 0addfd836a..50d13c897b 100644 --- a/packages/infolists/.stubs.php +++ b/packages/infolists/.stubs.php @@ -2,64 +2,154 @@ namespace Livewire\Features\SupportTesting { + /** + * @template-covariant T of object + */ class Testable { - public function mountInfolistAction(string $component, string | array $name, string $infolistName = 'infolist'): static {} - - public function unmountInfolistAction(): static {} - - public function setInfolistActionData(array $data): static {} - - public function assertInfolistActionDataSet(array $data): static {} - - public function callInfolistAction(string $component, string | array $name, array $data = [], array $arguments = [], string $infolistName = 'infolist'): static {} - - public function callMountedInfolistAction(array $arguments = []): static {} - - public function assertInfolistActionExists(string $component, string | array $name, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionDoesNotExist(string $component, string | array $name, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionVisible(string $component, string | array $name, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionHidden(string $component, string | array $name, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionEnabled(string $component, string | array $name, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionDisabled(string $component, string | array $name, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionMounted(string $component, string | array $name, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionNotMounted(string $component, string | array $name, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionHalted(string $component, string | array $name, string $infolistName = 'infolist'): static {} - - public function assertHasInfolistActionErrors(array $keys = []): static {} - - public function assertHasNoInfolistActionErrors(array $keys = []): static {} - - public function assertInfolistActionHasIcon(string $component, string | array $name, string $icon, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionDoesNotHaveIcon(string $component, string | array $name, string $icon, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionHasLabel(string $component, string | array $name, string $label, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionDoesNotHaveLabel(string $component, string | array $name, string $label, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionHasColor(string $component, string | array $name, string | array $color, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionDoesNotHaveColor(string $component, string | array $name, string | array $color, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionHasUrl(string $component, string | array $name, string $url, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionDoesNotHaveUrl(string $component, string | array $name, string $url, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionShouldOpenUrlInNewTab(string $component, string | array $name, string $infolistName = 'infolist'): static {} - - public function assertInfolistActionShouldNotOpenUrlInNewTab(string $component, string | array $name, string $infolistName = 'infolist'): static {} - - public function getNestedInfolistActionComponentAndName(string $component, string | array $name, string $infolistName = 'infolist'): static {} - - public function parseNestedInfolistActionComponentAndName(string $component, string | array $name, string $infolistName = 'infolist'): static {} + /** + * @return T + */ + public function mountInfolistAction(string $component, string | array $name, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function unmountInfolistAction() {} + + /** + * @return T + */ + public function setInfolistActionData(array $data) {} + + /** + * @return T + */ + public function assertInfolistActionDataSet(array $data) {} + + /** + * @return T + */ + public function callInfolistAction(string $component, string | array $name, array $data = [], array $arguments = [], string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function callMountedInfolistAction(array $arguments = []) {} + + /** + * @return T + */ + public function assertInfolistActionExists(string $component, string | array $name, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionDoesNotExist(string $component, string | array $name, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionVisible(string $component, string | array $name, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionHidden(string $component, string | array $name, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionEnabled(string $component, string | array $name, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionDisabled(string $component, string | array $name, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionMounted(string $component, string | array $name, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionNotMounted(string $component, string | array $name, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionHalted(string $component, string | array $name, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertHasInfolistActionErrors(array $keys = []) {} + + /** + * @return T + */ + public function assertHasNoInfolistActionErrors(array $keys = []) {} + + /** + * @return T + */ + public function assertInfolistActionHasIcon(string $component, string | array $name, string $icon, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionDoesNotHaveIcon(string $component, string | array $name, string $icon, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionHasLabel(string $component, string | array $name, string $label, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionDoesNotHaveLabel(string $component, string | array $name, string $label, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionHasColor(string $component, string | array $name, string | array $color, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionDoesNotHaveColor(string $component, string | array $name, string | array $color, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionHasUrl(string $component, string | array $name, string $url, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionDoesNotHaveUrl(string $component, string | array $name, string $url, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionShouldOpenUrlInNewTab(string $component, string | array $name, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function assertInfolistActionShouldNotOpenUrlInNewTab(string $component, string | array $name, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function getNestedInfolistActionComponentAndName(string $component, string | array $name, string $infolistName = 'infolist') {} + + /** + * @return T + */ + public function parseNestedInfolistActionComponentAndName(string $component, string | array $name, string $infolistName = 'infolist') {} } } diff --git a/packages/notifications/.stubs.php b/packages/notifications/.stubs.php index 0db2e97f25..8370c9e082 100644 --- a/packages/notifications/.stubs.php +++ b/packages/notifications/.stubs.php @@ -4,10 +4,19 @@ use Filament\Notifications\Notification; + /** + * @template-covariant T of object + */ class Testable { - public function assertNotified(Notification | string $notification = null): static {} - - public function assertNotNotified(Notification | string $notification = null): static {} + /** + * @return T + */ + public function assertNotified(Notification | string $notification = null) {} + + /** + * @return T + */ + public function assertNotNotified(Notification | string $notification = null) {} } } diff --git a/packages/tables/.stubs.php b/packages/tables/.stubs.php index b5a04bd76d..7cefb40eaf 100644 --- a/packages/tables/.stubs.php +++ b/packages/tables/.stubs.php @@ -6,174 +6,429 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Collection; + /** + * @template-covariant T of object + */ class Testable { - public function mountTableAction(string | array $name, $record = null): static {} - - public function unmountTableAction(): static {} - - public function setTableActionData(array $data): static {} - - public function assertTableActionDataSet(array $data): static {} - - public function callTableAction(string | array $name, $record = null, array $data = [], array $arguments = []): static {} - - public function callTableColumnAction(string $name, $record = null): static {} - - public function callMountedTableAction(array $arguments = []): static {} - - public function assertTableActionExists(string | array $name, ?Closure $checkActionUsing = null, $record = null): static {} - - public function assertTableActionDoesNotExist(string | array $name, ?Closure $checkActionUsing = null, $record = null): static {} - - public function assertTableActionsExistInOrder(array $names): static {} - - public function assertTableHeaderActionsExistInOrder(array $names): static {} - - public function assertTableEmptyStateActionsExistInOrder(array $names): static {} - - public function assertTableActionVisible(string | array $name, $record = null): static {} - - public function assertTableActionHidden(string | array $name, $record = null): static {} - - public function assertTableActionEnabled(string | array $name, $record = null): static {} - - public function assertTableActionDisabled(string | array $name, $record = null): static {} - - public function assertTableActionMounted(string | array $name): static {} - - public function assertTableActionNotMounted(string | array $name): static {} - - public function assertTableActionHalted(string | array $name): static {} - - public function assertHasTableActionErrors(array $keys = []): static {} - - public function assertHasNoTableActionErrors(array $keys = []): static {} - - public function mountTableBulkAction(string $name, array | Collection $records): static {} - - public function setTableBulkActionData(array $data): static {} - - public function assertTableBulkActionDataSet(array $data): static {} - - public function callTableBulkAction(string $name, array | Collection $records, array $data = [], array $arguments = []): static {} - - public function callMountedTableBulkAction(array $arguments = []): static {} - - public function assertTableBulkActionExists(string $name): static {} - - public function assertTableBulkActionDoesNotExist(string $name): static {} - - public function assertTableBulkActionsExistInOrder(array $names): static {} - - public function assertTableBulkActionVisible(string $name): static {} - - public function assertTableBulkActionHidden(string $name): static {} - - public function assertTableBulkActionEnabled(string $name): static {} - - public function assertTableBulkActionDisabled(string $name): static {} - - public function assertTableActionHasIcon(string | array $name, string $icon): static {} - - public function assertTableActionDoesNotHaveIcon(string | array $name, string $icon): static {} - - public function assertTableActionHasLabel(string | array $name, string $label): static {} - - public function assertTableActionDoesNotHaveLabel(string | array $name, string $label): static {} - - public function assertTableActionHasColor(string | array $name, string | array $color): static {} - - public function assertTableActionDoesNotHaveColor(string | array $name, string | array $color): static {} - - public function assertTableBulkActionHasIcon(string $name, string $icon): static {} - - public function assertTableBulkActionDoesNotHaveIcon(string $name, string $icon): static {} - - public function assertTableBulkActionHasLabel(string $name, string $label): static {} - - public function assertTableBulkActionDoesNotHaveLabel(string $name, string $label): static {} - - public function assertTableBulkActionHasColor(string $name, string | array $color): static {} - - public function assertTableBulkActionDoesNotHaveColor(string $name, string | array $color): static {} - - public function assertTableActionHasUrl(string | array $name, string $url): static {} - - public function assertTableActionDoesNotHaveUrl(string | array $name, string $url): static {} - - public function assertTableActionShouldOpenUrlInNewTab(string | array $name): static {} - - public function assertTableActionShouldNotOpenUrlInNewTab(string | array $name): static {} - - public function assertTableBulkActionMounted(string $name): static {} - - public function assertTableBulkActionNotMounted(string $name): static {} - - public function assertTableBulkActionHalted(string $name): static {} - - public function assertHasTableBulkActionErrors(array $keys = []): static {} - - public function assertHasNoTableBulkActionErrors(array $keys = []): static {} - - public function assertCanRenderTableColumn(string $name): static {} - - public function assertCanNotRenderTableColumn(string $name): static {} - - public function assertTableColumnExists(string $name, ?Closure $checkColumnUsing = null, $record = null): static {} - - public function assertTableColumnDoesNotExist(string $name, ?Closure $checkColumnUsing = null, $record = null): static {} - - public function assertTableColumnVisible(string $name): static {} - - public function assertTableColumnHidden(string $name): static {} - - public function assertTableColumnStateSet(string $name, $value, $record): static {} - - public function assertTableColumnStateNotSet(string $name, $value, $record): static {} - - public function assertTableColumnSummarizerExists(string $columnName, string $summarizerId): static {} - - public function assertTableColumnSummarySet(string $columnName, string $summarizerId, $state, bool $isCurrentPaginationPageOnly = false): static {} - - public function assertTableColumnSummaryNotSet(string $columnName, string $summarizerId, $state, bool $isCurrentPaginationPageOnly = false): static {} - - public function assertTableColumnFormattedStateSet(string $name, $value, $record): static {} - - public function assertTableColumnFormattedStateNotSet(string $name, $value, $record): static {} - - public function assertTableColumnHasExtraAttributes(string $name, $value, $record): static {} - - public function assertTableColumnDoesNotHaveExtraAttributes(string $name, $value, $record): static {} - - public function assertTableColumnHasDescription(string $name, $description, $record, $position = 'below'): static {} - - public function assertTableColumnDoesNotHaveDescription(string $name, $description, $record, $position = 'below'): static {} - - public function assertTableSelectColumnHasOptions(string $name, array $options, $record): static {} - - public function assertTableSelectColumnDoesNotHaveOptions(string $name, array $options, $record): static {} - - public function sortTable(?string $name = null, ?string $direction = null): static {} - - public function searchTable(?string $search = null): static {} - - public function searchTableColumns(array $searches): static {} - - public function filterTable(string $name, $data = null): static {} - - public function resetTableFilters(): static {} - - public function removeTableFilter(string $filter, ?string $field = null): static {} - - public function removeTableFilters(): static {} - - public function assertCanSeeTableRecords(array | Collection $records, bool $inOrder = false): static {} - - public function assertCanNotSeeTableRecords(array | Collection $records): static {} - - public function assertCountTableRecords(int $count): static {} - - public function loadTable(): static {} + /** + * @return T + */ + public function mountTableAction(string | array $name, $record = null) {} + + /** + * @return T + */ + public function unmountTableAction() {} + + /** + * @return T + */ + public function setTableActionData(array $data) {} + + /** + * @return T + */ + public function assertTableActionDataSet(array $data) {} + + /** + * @return T + */ + public function callTableAction(string | array $name, $record = null, array $data = [], array $arguments = []) {} + + /** + * @return T + */ + public function callTableColumnAction(string $name, $record = null) {} + + /** + * @return T + */ + public function callMountedTableAction(array $arguments = []) {} + + /** + * @return T + */ + public function assertTableActionExists(string | array $name, ?Closure $checkActionUsing = null, $record = null) {} + + /** + * @return T + */ + public function assertTableActionDoesNotExist(string | array $name, ?Closure $checkActionUsing = null, $record = null) {} + + /** + * @return T + */ + public function assertTableActionsExistInOrder(array $names) {} + + /** + * @return T + */ + public function assertTableHeaderActionsExistInOrder(array $names) {} + + /** + * @return T + */ + public function assertTableEmptyStateActionsExistInOrder(array $names) {} + + /** + * @return T + */ + public function assertTableActionVisible(string | array $name, $record = null) {} + + /** + * @return T + */ + public function assertTableActionHidden(string | array $name, $record = null) {} + + /** + * @return T + */ + public function assertTableActionEnabled(string | array $name, $record = null) {} + + /** + * @return T + */ + public function assertTableActionDisabled(string | array $name, $record = null) {} + + /** + * @return T + */ + public function assertTableActionMounted(string | array $name) {} + + /** + * @return T + */ + public function assertTableActionNotMounted(string | array $name) {} + + /** + * @return T + */ + public function assertTableActionHalted(string | array $name) {} + + /** + * @return T + */ + public function assertHasTableActionErrors(array $keys = []) {} + + /** + * @return T + */ + public function assertHasNoTableActionErrors(array $keys = []) {} + + /** + * @return T + */ + public function mountTableBulkAction(string $name, array | Collection $records) {} + + /** + * @return T + */ + public function setTableBulkActionData(array $data) {} + + /** + * @return T + */ + public function assertTableBulkActionDataSet(array $data) {} + + /** + * @return T + */ + public function callTableBulkAction(string $name, array | Collection $records, array $data = [], array $arguments = []) {} + + /** + * @return T + */ + public function callMountedTableBulkAction(array $arguments = []) {} + + /** + * @return T + */ + public function assertTableBulkActionExists(string $name) {} + + /** + * @return T + */ + public function assertTableBulkActionDoesNotExist(string $name) {} + + /** + * @return T + */ + public function assertTableBulkActionsExistInOrder(array $names) {} + + /** + * @return T + */ + public function assertTableBulkActionVisible(string $name) {} + + /** + * @return T + */ + public function assertTableBulkActionHidden(string $name) {} + + /** + * @return T + */ + public function assertTableBulkActionEnabled(string $name) {} + + /** + * @return T + */ + public function assertTableBulkActionDisabled(string $name) {} + + /** + * @return T + */ + public function assertTableActionHasIcon(string | array $name, string $icon) {} + + /** + * @return T + */ + public function assertTableActionDoesNotHaveIcon(string | array $name, string $icon) {} + + /** + * @return T + */ + public function assertTableActionHasLabel(string | array $name, string $label) {} + + /** + * @return T + */ + public function assertTableActionDoesNotHaveLabel(string | array $name, string $label) {} + + /** + * @return T + */ + public function assertTableActionHasColor(string | array $name, string | array $color) {} + + /** + * @return T + */ + public function assertTableActionDoesNotHaveColor(string | array $name, string | array $color) {} + + /** + * @return T + */ + public function assertTableBulkActionHasIcon(string $name, string $icon) {} + + /** + * @return T + */ + public function assertTableBulkActionDoesNotHaveIcon(string $name, string $icon) {} + + /** + * @return T + */ + public function assertTableBulkActionHasLabel(string $name, string $label) {} + + /** + * @return T + */ + public function assertTableBulkActionDoesNotHaveLabel(string $name, string $label) {} + + /** + * @return T + */ + public function assertTableBulkActionHasColor(string $name, string | array $color) {} + + /** + * @return T + */ + public function assertTableBulkActionDoesNotHaveColor(string $name, string | array $color) {} + + /** + * @return T + */ + public function assertTableActionHasUrl(string | array $name, string $url) {} + + /** + * @return T + */ + public function assertTableActionDoesNotHaveUrl(string | array $name, string $url) {} + + /** + * @return T + */ + public function assertTableActionShouldOpenUrlInNewTab(string | array $name) {} + + /** + * @return T + */ + public function assertTableActionShouldNotOpenUrlInNewTab(string | array $name) {} + + /** + * @return T + */ + public function assertTableBulkActionMounted(string $name) {} + + /** + * @return T + */ + public function assertTableBulkActionNotMounted(string $name) {} + + /** + * @return T + */ + public function assertTableBulkActionHalted(string $name) {} + + /** + * @return T + */ + public function assertHasTableBulkActionErrors(array $keys = []) {} + + /** + * @return T + */ + public function assertHasNoTableBulkActionErrors(array $keys = []) {} + + /** + * @return T + */ + public function assertCanRenderTableColumn(string $name) {} + + /** + * @return T + */ + public function assertCanNotRenderTableColumn(string $name) {} + + /** + * @return T + */ + public function assertTableColumnExists(string $name, ?Closure $checkColumnUsing = null, $record = null) {} + + /** + * @return T + */ + public function assertTableColumnDoesNotExist(string $name, ?Closure $checkColumnUsing = null, $record = null) {} + + /** + * @return T + */ + public function assertTableColumnVisible(string $name) {} + + /** + * @return T + */ + public function assertTableColumnHidden(string $name) {} + + /** + * @return T + */ + public function assertTableColumnStateSet(string $name, $value, $record) {} + + /** + * @return T + */ + public function assertTableColumnStateNotSet(string $name, $value, $record) {} + + /** + * @return T + */ + public function assertTableColumnSummarizerExists(string $columnName, string $summarizerId) {} + + /** + * @return T + */ + public function assertTableColumnSummarySet(string $columnName, string $summarizerId, $state, bool $isCurrentPaginationPageOnly = false) {} + + /** + * @return T + */ + public function assertTableColumnSummaryNotSet(string $columnName, string $summarizerId, $state, bool $isCurrentPaginationPageOnly = false) {} + + /** + * @return T + */ + public function assertTableColumnFormattedStateSet(string $name, $value, $record) {} + + /** + * @return T + */ + public function assertTableColumnFormattedStateNotSet(string $name, $value, $record) {} + + /** + * @return T + */ + public function assertTableColumnHasExtraAttributes(string $name, $value, $record) {} + + /** + * @return T + */ + public function assertTableColumnDoesNotHaveExtraAttributes(string $name, $value, $record) {} + + /** + * @return T + */ + public function assertTableColumnHasDescription(string $name, $description, $record, $position = 'below') {} + + /** + * @return T + */ + public function assertTableColumnDoesNotHaveDescription(string $name, $description, $record, $position = 'below') {} + + /** + * @return T + */ + public function assertTableSelectColumnHasOptions(string $name, array $options, $record) {} + + /** + * @return T + */ + public function assertTableSelectColumnDoesNotHaveOptions(string $name, array $options, $record) {} + + /** + * @return T + */ + public function sortTable(?string $name = null, ?string $direction = null) {} + + /** + * @return T + */ + public function searchTable(?string $search = null) {} + + /** + * @return T + */ + public function searchTableColumns(array $searches) {} + + /** + * @return T + */ + public function filterTable(string $name, $data = null) {} + + /** + * @return T + */ + public function resetTableFilters() {} + + /** + * @return T + */ + public function removeTableFilter(string $filter, ?string $field = null) {} + + /** + * @return T + */ + public function removeTableFilters() {} + + /** + * @return T + */ + public function assertCanSeeTableRecords(array | Collection $records, bool $inOrder = false) {} + + /** + * @return T + */ + public function assertCanNotSeeTableRecords(array | Collection $records) {} + + /** + * @return T + */ + public function assertCountTableRecords(int $count) {} + + /** + * @return T + */ + public function loadTable() {} } }