From 03304f29099786f15ea5db0bbadb087abd63eecd Mon Sep 17 00:00:00 2001 From: Joe <104938042+lrljoe@users.noreply.github.com> Date: Sun, 10 Nov 2024 02:10:39 +0000 Subject: [PATCH] Test Suite cleanup - migrating existing tests into "Unit" (#2037) * Initial Movement of Tests into Directories * Fix styling --------- Co-authored-by: lrljoe --- phpunit.xml.dist | 2 +- tests/{ => Unit}/Attributes/AggregateColumnProvider.php | 2 +- tests/{ => Unit}/DataTransferObjects/DebuggableDataTest.php | 2 +- tests/{ => Unit}/Events/ColumnsSelectedTest.php | 0 tests/{ => Unit}/Events/FilterAppliedTest.php | 0 tests/{ => Unit}/Events/SearchAppliedTest.php | 0 tests/{ => Unit}/Features/AutoInjectRappasoftAssetsTest.php | 2 +- tests/{ => Unit}/Mechanisms/RappasoftFrontendAssetsTest.php | 2 +- .../Traits/Configuration/BulkActionsConfigurationTest.php | 2 +- .../Configuration/BulkActionsStylingConfigurationTest.php | 2 +- .../Traits/Configuration/ColumnSelectConfigurationTest.php | 2 +- .../Traits/Configuration/ComponentConfigurationTest.php | 2 +- .../Traits/Configuration/CustomisationsConfigurationTest.php | 2 +- .../Traits/Configuration/DebuggingConfigurationTest.php | 2 +- .../Traits/Configuration/EventConfigurationTest.php | 2 +- .../Traits/Configuration/FilterConfigurationTest.php | 2 +- .../Traits/Configuration/FingerprintConfigurationTest.php | 2 +- .../Traits/Configuration/FooterConfigurationTest.php | 2 +- .../Configuration/LoadingPlaceholderConfigurationTest.php | 2 +- .../Traits/Configuration/PaginationConfigurationTest.php | 2 +- .../Configuration/QueryStringAliasConfigurationTest.php | 2 +- .../Traits/Configuration/RefreshConfigurationTest.php | 2 +- .../Traits/Configuration/ReorderingConfigurationTest.php | 2 +- .../Traits/Configuration/SearchConfigurationTest.php | 2 +- .../Traits/Configuration/SecondaryHeaderConfigurationTest.php | 2 +- .../Traits/Configuration/SortingConfigurationTest.php | 2 +- tests/{ => Unit}/Traits/Core/CustomAttributesTest.php | 2 +- .../Traits/Core/QueryStrings/QueryStringForFiltersTest.php | 2 +- .../Traits/Core/QueryStrings/QueryStringForSearchTest.php | 2 +- .../Traits/Core/QueryStrings/QueryStringForSortTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/BulkActionsHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/ColumnHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/ColumnSelectHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/ComponentHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/DebugHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/EventHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/FilterHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/FooterHelpersTest.php | 2 +- .../Traits/Helpers/LoadingPlaceholderHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/PaginationHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/RefreshHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/RelationshipHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/ReorderingHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/SearchHelpersTest.php | 2 +- .../{ => Unit}/Traits/Helpers/SecondaryHeaderHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/SessionStorageHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/SortingHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/TableAttributeHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/ToolsHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Helpers/ToolsStylingHelpersTest.php | 2 +- tests/{ => Unit}/Traits/Visuals/ActionsVisualsTest.php | 2 +- tests/{ => Unit}/Traits/Visuals/BulkActionsVisualsTest.php | 2 +- .../Traits/Visuals/Columns/IconColumnVisualsTest.php | 2 +- tests/{ => Unit}/Traits/Visuals/ComponentVisualsTest.php | 2 +- tests/{ => Unit}/Traits/Visuals/FilterVisualsTest.php | 2 +- .../Traits/Visuals/Filters/TextFilterVisualsTest.php | 2 +- tests/{ => Unit}/Traits/Visuals/HideableTableTest.php | 2 +- .../Traits/Visuals/LoadingPlaceholderVisualsTest.php | 2 +- tests/{ => Unit}/Traits/Visuals/PaginationVisualsTest.php | 2 +- tests/{ => Unit}/Traits/Visuals/RefreshVisualsTest.php | 2 +- tests/{ => Unit}/Traits/Visuals/ReorderingVisualsTest.php | 2 +- tests/{ => Unit}/Traits/Visuals/SearchVisualsTest.php | 2 +- tests/{ => Unit}/Traits/Visuals/SortingVisualsTest.php | 2 +- tests/{ => Unit}/Traits/WithMountTest.php | 2 +- tests/{ => Unit}/Traits/WithSearchTest.php | 2 +- tests/{ => Unit}/Traits/WithSortingTest.php | 2 +- tests/{ => Unit}/Views/Actions/ActionTest.php | 2 +- tests/{ => Unit}/Views/BooleanColumnTest.php | 2 +- tests/{ => Unit}/Views/ColumnTest.php | 2 +- tests/{ => Unit}/Views/Columns/ArrayColumnTest.php | 2 +- tests/{ => Unit}/Views/Columns/AvgColumnTest.php | 4 ++-- tests/{ => Unit}/Views/Columns/BooleanColumnTest.php | 2 +- tests/{ => Unit}/Views/Columns/ButtonGroupColumnTest.php | 2 +- tests/{ => Unit}/Views/Columns/ColorColumnTest.php | 2 +- tests/{ => Unit}/Views/Columns/ComponentColumnTest.php | 2 +- tests/{ => Unit}/Views/Columns/CountColumnTest.php | 2 +- tests/{ => Unit}/Views/Columns/DateColumnTest.php | 2 +- tests/{ => Unit}/Views/Columns/IconColumnTest.php | 2 +- tests/{ => Unit}/Views/Columns/ImageColumnTest.php | 2 +- tests/{ => Unit}/Views/Columns/LinkColumnTest.php | 2 +- tests/{ => Unit}/Views/Columns/SumColumnTest.php | 4 ++-- tests/{ => Unit}/Views/Columns/ViewComponentColumnTest.php | 2 +- tests/{ => Unit}/Views/Columns/WireLinkColumnTest.php | 2 +- tests/{ => Unit}/Views/ComponentColumnTest.php | 2 +- tests/{ => Unit}/Views/Filters/BooleanFilterTest.php | 2 +- tests/{ => Unit}/Views/Filters/DateFilterTest.php | 2 +- tests/{ => Unit}/Views/Filters/DateRangeFilterTest.php | 2 +- tests/{ => Unit}/Views/Filters/DateTimeFilterTest.php | 2 +- tests/{ => Unit}/Views/Filters/FilterTestCase.php | 2 +- .../Views/Filters/MultiSelectDropdownFilterTest.php | 2 +- tests/{ => Unit}/Views/Filters/MultiSelectFilterTest.php | 2 +- tests/{ => Unit}/Views/Filters/NumberFilterTest.php | 2 +- tests/{ => Unit}/Views/Filters/NumberRangeFilterTest.php | 2 +- tests/{ => Unit}/Views/Filters/SelectFilterTest.php | 2 +- tests/{ => Unit}/Views/Filters/TextFilterTest.php | 2 +- .../Traits/Configuration/BooleanColumnConfigurationTest.php | 2 +- .../Configuration/ButtonGroupColumnConfigurationTest.php | 2 +- .../Views/Traits/Configuration/ColumnConfigurationTest.php | 2 +- .../Traits/Configuration/ComponentColumnConfigurationTest.php | 2 +- .../Views/Traits/Configuration/FilterConfigurationTest.php | 2 +- tests/{ => Unit}/Views/Traits/Helpers/ColumnHelpersTest.php | 2 +- tests/{ => Unit}/Views/Traits/Helpers/FilterHelpersTest.php | 2 +- 102 files changed, 101 insertions(+), 101 deletions(-) rename tests/{ => Unit}/Attributes/AggregateColumnProvider.php (72%) rename tests/{ => Unit}/DataTransferObjects/DebuggableDataTest.php (95%) rename tests/{ => Unit}/Events/ColumnsSelectedTest.php (100%) rename tests/{ => Unit}/Events/FilterAppliedTest.php (100%) rename tests/{ => Unit}/Events/SearchAppliedTest.php (100%) rename tests/{ => Unit}/Features/AutoInjectRappasoftAssetsTest.php (97%) rename tests/{ => Unit}/Mechanisms/RappasoftFrontendAssetsTest.php (99%) rename tests/{ => Unit}/Traits/Configuration/BulkActionsConfigurationTest.php (99%) rename tests/{ => Unit}/Traits/Configuration/BulkActionsStylingConfigurationTest.php (98%) rename tests/{ => Unit}/Traits/Configuration/ColumnSelectConfigurationTest.php (98%) rename tests/{ => Unit}/Traits/Configuration/ComponentConfigurationTest.php (99%) rename tests/{ => Unit}/Traits/Configuration/CustomisationsConfigurationTest.php (95%) rename tests/{ => Unit}/Traits/Configuration/DebuggingConfigurationTest.php (90%) rename tests/{ => Unit}/Traits/Configuration/EventConfigurationTest.php (94%) rename tests/{ => Unit}/Traits/Configuration/FilterConfigurationTest.php (98%) rename tests/{ => Unit}/Traits/Configuration/FingerprintConfigurationTest.php (91%) rename tests/{ => Unit}/Traits/Configuration/FooterConfigurationTest.php (96%) rename tests/{ => Unit}/Traits/Configuration/LoadingPlaceholderConfigurationTest.php (99%) rename tests/{ => Unit}/Traits/Configuration/PaginationConfigurationTest.php (98%) rename tests/{ => Unit}/Traits/Configuration/QueryStringAliasConfigurationTest.php (91%) rename tests/{ => Unit}/Traits/Configuration/RefreshConfigurationTest.php (94%) rename tests/{ => Unit}/Traits/Configuration/ReorderingConfigurationTest.php (98%) rename tests/{ => Unit}/Traits/Configuration/SearchConfigurationTest.php (98%) rename tests/{ => Unit}/Traits/Configuration/SecondaryHeaderConfigurationTest.php (95%) rename tests/{ => Unit}/Traits/Configuration/SortingConfigurationTest.php (97%) rename tests/{ => Unit}/Traits/Core/CustomAttributesTest.php (97%) rename tests/{ => Unit}/Traits/Core/QueryStrings/QueryStringForFiltersTest.php (97%) rename tests/{ => Unit}/Traits/Core/QueryStrings/QueryStringForSearchTest.php (97%) rename tests/{ => Unit}/Traits/Core/QueryStrings/QueryStringForSortTest.php (97%) rename tests/{ => Unit}/Traits/Helpers/BulkActionsHelpersTest.php (99%) rename tests/{ => Unit}/Traits/Helpers/ColumnHelpersTest.php (99%) rename tests/{ => Unit}/Traits/Helpers/ColumnSelectHelpersTest.php (98%) rename tests/{ => Unit}/Traits/Helpers/ComponentHelpersTest.php (99%) rename tests/{ => Unit}/Traits/Helpers/DebugHelpersTest.php (87%) rename tests/{ => Unit}/Traits/Helpers/EventHelpersTest.php (87%) rename tests/{ => Unit}/Traits/Helpers/FilterHelpersTest.php (99%) rename tests/{ => Unit}/Traits/Helpers/FooterHelpersTest.php (92%) rename tests/{ => Unit}/Traits/Helpers/LoadingPlaceholderHelpersTest.php (87%) rename tests/{ => Unit}/Traits/Helpers/PaginationHelpersTest.php (99%) rename tests/{ => Unit}/Traits/Helpers/RefreshHelpersTest.php (93%) rename tests/{ => Unit}/Traits/Helpers/RelationshipHelpersTest.php (94%) rename tests/{ => Unit}/Traits/Helpers/ReorderingHelpersTest.php (97%) rename tests/{ => Unit}/Traits/Helpers/SearchHelpersTest.php (98%) rename tests/{ => Unit}/Traits/Helpers/SecondaryHeaderHelpersTest.php (88%) rename tests/{ => Unit}/Traits/Helpers/SessionStorageHelpersTest.php (98%) rename tests/{ => Unit}/Traits/Helpers/SortingHelpersTest.php (98%) rename tests/{ => Unit}/Traits/Helpers/TableAttributeHelpersTest.php (94%) rename tests/{ => Unit}/Traits/Helpers/ToolsHelpersTest.php (98%) rename tests/{ => Unit}/Traits/Helpers/ToolsStylingHelpersTest.php (98%) rename tests/{ => Unit}/Traits/Visuals/ActionsVisualsTest.php (98%) rename tests/{ => Unit}/Traits/Visuals/BulkActionsVisualsTest.php (99%) rename tests/{ => Unit}/Traits/Visuals/Columns/IconColumnVisualsTest.php (97%) rename tests/{ => Unit}/Traits/Visuals/ComponentVisualsTest.php (98%) rename tests/{ => Unit}/Traits/Visuals/FilterVisualsTest.php (98%) rename tests/{ => Unit}/Traits/Visuals/Filters/TextFilterVisualsTest.php (99%) rename tests/{ => Unit}/Traits/Visuals/HideableTableTest.php (96%) rename tests/{ => Unit}/Traits/Visuals/LoadingPlaceholderVisualsTest.php (96%) rename tests/{ => Unit}/Traits/Visuals/PaginationVisualsTest.php (99%) rename tests/{ => Unit}/Traits/Visuals/RefreshVisualsTest.php (94%) rename tests/{ => Unit}/Traits/Visuals/ReorderingVisualsTest.php (99%) rename tests/{ => Unit}/Traits/Visuals/SearchVisualsTest.php (98%) rename tests/{ => Unit}/Traits/Visuals/SortingVisualsTest.php (99%) rename tests/{ => Unit}/Traits/WithMountTest.php (97%) rename tests/{ => Unit}/Traits/WithSearchTest.php (93%) rename tests/{ => Unit}/Traits/WithSortingTest.php (97%) rename tests/{ => Unit}/Views/Actions/ActionTest.php (99%) rename tests/{ => Unit}/Views/BooleanColumnTest.php (93%) rename tests/{ => Unit}/Views/ColumnTest.php (98%) rename tests/{ => Unit}/Views/Columns/ArrayColumnTest.php (97%) rename tests/{ => Unit}/Views/Columns/AvgColumnTest.php (96%) rename tests/{ => Unit}/Views/Columns/BooleanColumnTest.php (98%) rename tests/{ => Unit}/Views/Columns/ButtonGroupColumnTest.php (93%) rename tests/{ => Unit}/Views/Columns/ColorColumnTest.php (98%) rename tests/{ => Unit}/Views/Columns/ComponentColumnTest.php (94%) rename tests/{ => Unit}/Views/Columns/CountColumnTest.php (95%) rename tests/{ => Unit}/Views/Columns/DateColumnTest.php (98%) rename tests/{ => Unit}/Views/Columns/IconColumnTest.php (98%) rename tests/{ => Unit}/Views/Columns/ImageColumnTest.php (95%) rename tests/{ => Unit}/Views/Columns/LinkColumnTest.php (97%) rename tests/{ => Unit}/Views/Columns/SumColumnTest.php (96%) rename tests/{ => Unit}/Views/Columns/ViewComponentColumnTest.php (97%) rename tests/{ => Unit}/Views/Columns/WireLinkColumnTest.php (96%) rename tests/{ => Unit}/Views/ComponentColumnTest.php (94%) rename tests/{ => Unit}/Views/Filters/BooleanFilterTest.php (97%) rename tests/{ => Unit}/Views/Filters/DateFilterTest.php (99%) rename tests/{ => Unit}/Views/Filters/DateRangeFilterTest.php (99%) rename tests/{ => Unit}/Views/Filters/DateTimeFilterTest.php (99%) rename tests/{ => Unit}/Views/Filters/FilterTestCase.php (97%) rename tests/{ => Unit}/Views/Filters/MultiSelectDropdownFilterTest.php (99%) rename tests/{ => Unit}/Views/Filters/MultiSelectFilterTest.php (99%) rename tests/{ => Unit}/Views/Filters/NumberFilterTest.php (98%) rename tests/{ => Unit}/Views/Filters/NumberRangeFilterTest.php (99%) rename tests/{ => Unit}/Views/Filters/SelectFilterTest.php (98%) rename tests/{ => Unit}/Views/Filters/TextFilterTest.php (98%) rename tests/{ => Unit}/Views/Traits/Configuration/BooleanColumnConfigurationTest.php (93%) rename tests/{ => Unit}/Views/Traits/Configuration/ButtonGroupColumnConfigurationTest.php (93%) rename tests/{ => Unit}/Views/Traits/Configuration/ColumnConfigurationTest.php (98%) rename tests/{ => Unit}/Views/Traits/Configuration/ComponentColumnConfigurationTest.php (92%) rename tests/{ => Unit}/Views/Traits/Configuration/FilterConfigurationTest.php (97%) rename tests/{ => Unit}/Views/Traits/Helpers/ColumnHelpersTest.php (99%) rename tests/{ => Unit}/Views/Traits/Helpers/FilterHelpersTest.php (99%) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1e3747412..b3666050f 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -10,7 +10,7 @@ beStrictAboutOutputDuringTests="true" > - tests + tests/Unit diff --git a/tests/Attributes/AggregateColumnProvider.php b/tests/Unit/Attributes/AggregateColumnProvider.php similarity index 72% rename from tests/Attributes/AggregateColumnProvider.php rename to tests/Unit/Attributes/AggregateColumnProvider.php index 8e8c3f529..a290cfc19 100644 --- a/tests/Attributes/AggregateColumnProvider.php +++ b/tests/Unit/Attributes/AggregateColumnProvider.php @@ -1,6 +1,6 @@