From 7b7813264ed846b9c98f883edae14ecf2c3ef7fa Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 20 Mar 2019 13:40:44 +1300 Subject: [PATCH] As discussed, delete webtests They were extremely hard to maintain when we were maintaining them, now they have been unmaitained so long that they would take more work to get functional than starting from scratch. They make grepping harder --- .../CiviTest/CiviSeleniumSettings.auto.php | 65 - .../CiviTest/CiviSeleniumSettings.php.txt | 72 - .../phpunit/CiviTest/CiviSeleniumTestCase.php | 2661 ----------------- .../WebTest/ACL/AssignUsersToRolesTest.php | 427 --- .../Activity/AddRecurringActivityTest.php | 155 - .../Activity/ContactContextAddTest.php | 233 -- tests/phpunit/WebTest/Activity/IcalTest.php | 121 - .../WebTest/Activity/StandaloneAddTest.php | 267 -- tests/phpunit/WebTest/Admin/CustomAddTest.php | 197 -- .../WebTest/Admin/CustomAddTestSameField.php | 174 -- .../Admin/Form/ScheduleReminderTest.php | 92 - .../Admin/Form/Setting/DebuggingTest.php | 55 - .../Admin/Form/Setting/LocalizationTest.php | 62 - .../WebTest/Admin/MoveCustomDataTest.php | 495 --- .../WebTest/Admin/RelationshipTypeAddTest.php | 126 - tests/phpunit/WebTest/AllTests.php | 58 - .../phpunit/WebTest/Campaign/ActivityTest.php | 210 -- .../Campaign/CampaignDescriptionTest.php | 97 - .../phpunit/WebTest/Campaign/MailingTest.php | 288 -- .../WebTest/Campaign/MembershipTest.php | 172 -- .../Campaign/OfflineContributionTest.php | 272 -- .../Campaign/OfflineEventRegistrationTest.php | 235 -- .../Campaign/OnlineContributionTest.php | 307 -- .../Campaign/OnlineEventRegistrationTest.php | 366 --- .../Campaign/PetitionUsageScenarioTest.php | 275 -- tests/phpunit/WebTest/Campaign/PledgeTest.php | 186 -- .../Campaign/SurveyUsageScenarioTest.php | 617 ---- .../WebTest/Case/ActivityToCaseTest.php | 425 --- tests/phpunit/WebTest/Case/AddCaseTest.php | 304 -- .../phpunit/WebTest/Case/AddCaseTypeTest.php | 147 - .../WebTest/Case/CaseCustomFieldsTest.php | 438 --- .../WebTest/Case/CaseDashboardTest.php | 133 - .../WebTest/Contact/AddCmsUserTest.php | 127 - .../AddContactsToEventAdvancedSearchTest.php | 71 - tests/phpunit/WebTest/Contact/AddTest.php | 567 ---- .../WebTest/Contact/AddViaProfileTest.php | 45 - .../WebTest/Contact/AddressParsingTest.php | 162 - .../WebTest/Contact/AdvanceSearchPaneTest.php | 368 --- .../AdvanceSearchPrivacyOptionsTest.php | 232 -- .../WebTest/Contact/AdvancedSearchTest.php | 516 ---- .../AdvancedSearchedRelatedContactTest.php | 341 --- .../Contact/ContactReferenceFieldTest.php | 176 -- .../WebTest/Contact/ContactTagTest.php | 152 - .../Contact/CreateCmsUserFromContactTest.php | 248 -- .../WebTest/Contact/CustomDataAddTest.php | 344 --- .../DeceasedContactsAdvancedSearchTest.php | 122 - .../WebTest/Contact/DupeContactTest.php | 152 - .../WebTest/Contact/EditContactTest.php | 170 -- .../phpunit/WebTest/Contact/GroupAddTest.php | 320 -- .../WebTest/Contact/InlineFieldsEditTest.php | 351 --- .../WebTest/Contact/MergeContactsTest.php | 1016 ------- .../Contact/MultipleContactSubTypes.php | 255 -- .../phpunit/WebTest/Contact/PrevNextTest.php | 130 - .../Contact/PrivacyOptionSearchTest.php | 156 - .../WebTest/Contact/ProfileChecksumTest.php | 193 -- .../WebTest/Contact/RelationshipAddTest.php | 422 --- .../WebTest/Contact/SearchBuilderTest.php | 551 ---- tests/phpunit/WebTest/Contact/SearchTest.php | 263 -- .../Contact/SearchbyDateFilterTest.php | 348 --- .../phpunit/WebTest/Contact/SignatureTest.php | 143 - tests/phpunit/WebTest/Contact/TagAddTest.php | 114 - .../WebTest/Contact/TagSetSearchTest.php | 160 - .../Contact/TaskActionAddToGroupTest.php | 146 - .../Contact/TaskActionSendMassMailing.php | 136 - .../WebTest/Contact/TaskActionSendSMS.php | 121 - .../WebTest/Contact/UpdateProfileTest.php | 81 - .../WebTest/Contribute/AddBatchesTest.php | 343 --- .../WebTest/Contribute/AddPricesetTest.php | 611 ---- .../Contribute/ConfirmOptionalTest.php | 114 - .../Contribute/ContactContextAddTest.php | 194 -- .../Contribute/ContributionPageAddTest.php | 445 --- .../Contribute/OfflineContributionTest.php | 571 ---- .../OfflineRecurContributionTest.php | 111 - .../Contribute/OnBehalfOfOrganization.php | 1478 --------- .../Contribute/OnlineContributionTest.php | 731 ----- .../OnlineMultiplePaymentProcessorTest.php | 208 -- .../OnlineRecurContributionTest.php | 156 - .../phpunit/WebTest/Contribute/PCPAddTest.php | 210 -- .../WebTest/Contribute/StandaloneAddTest.php | 320 -- .../UpdateBatchPendingContributionTest.php | 236 -- .../Contribute/UpdateContributionTest.php | 508 ---- .../UpdatePendingContributionTest.php | 316 -- .../Contribute/VerifySSLContributionTest.php | 135 - tests/phpunit/WebTest/Event/AddEventTest.php | 1252 -------- .../WebTest/Event/AddParticipationTest.php | 460 --- .../phpunit/WebTest/Event/AddPricesetTest.php | 779 ----- .../WebTest/Event/AddRecurringEventTest.php | 106 - .../WebTest/Event/AdditionalPaymentTest.php | 217 -- .../WebTest/Event/ChangeParticipantStatus.php | 167 -- .../WebTest/Event/EventListingTest.php | 166 - .../WebTest/Event/EventWaitListTest.php | 242 -- .../MultipleEventRegistrationbyCartTest.php | 514 ---- .../WebTest/Event/MultiprofileEventTest.php | 842 ------ tests/phpunit/WebTest/Event/PCPAddTest.php | 557 ---- .../WebTest/Event/ParticipantCountTest.php | 475 --- .../WebTest/Event/ParticipantSearchTest.php | 255 -- .../WebTest/Event/PricesetMaxCountTest.php | 1192 -------- .../phpunit/WebTest/Event/TellAFriendTest.php | 279 -- tests/phpunit/WebTest/Export/ContactTest.php | 572 ---- .../Export/ExportCiviSeleniumTestCase.php | 165 - .../Financial/FinancialAccountTest.php | 144 - .../Financial/FinancialAccountTypeTest.php | 102 - .../Financial/FinancialBatchExport.php | 140 - .../WebTest/Generic/CheckActivityTest.php | 86 - .../WebTest/Generic/CheckDashboardTest.php | 171 -- .../phpunit/WebTest/Generic/CheckFindTest.php | 47 - .../Generic/GeneralClickAroundTest.php | 359 --- .../WebTest/Grant/ContactContextAddTest.php | 140 - .../WebTest/Grant/CustomFieldsetTest.php | 125 - .../WebTest/Grant/StandaloneAddTest.php | 109 - tests/phpunit/WebTest/Import/ActivityTest.php | 102 - .../WebTest/Import/AddressImportTest.php | 312 -- .../WebTest/Import/AddressParsingTest.php | 289 -- .../WebTest/Import/ContactCustomDataTest.php | 194 -- .../WebTest/Import/ContactSubtypeTest.php | 433 --- tests/phpunit/WebTest/Import/ContactTest.php | 425 --- .../WebTest/Import/ContributionTest.php | 198 -- .../phpunit/WebTest/Import/CustomDataTest.php | 356 --- .../phpunit/WebTest/Import/DateFormatTest.php | 471 --- .../WebTest/Import/DuplicateMatchingTest.php | 494 --- tests/phpunit/WebTest/Import/GroupTest.php | 142 - .../Import/ImportCiviSeleniumTestCase.php | 599 ---- .../WebTest/Import/MatchExternalIdTest.php | 366 --- tests/phpunit/WebTest/Import/MemberTest.php | 214 -- .../Import/MultipleRelationshipTest.php | 229 -- .../WebTest/Import/ParticipantTest.php | 340 --- .../WebTest/Import/SavedMappingTest.php | 142 - tests/phpunit/WebTest/Import/TagTest.php | 140 - .../phpunit/WebTest/Mailing/ABMailingTest.php | 537 ---- .../Mailing/AddMessageTemplateTest.php | 177 -- .../Mailing/AddNewMailingComponentTest.php | 149 - tests/phpunit/WebTest/Mailing/MailingTest.php | 573 ---- tests/phpunit/WebTest/Mailing/SpoolTest.php | 98 - .../ValidateBodyMailingComponentTest.php | 71 - .../Member/BatchUpdateViaProfileTest.php | 278 -- .../WebTest/Member/ContactContextAddTest.php | 238 -- .../Member/DefaultMembershipPricesetTest.php | 299 -- .../WebTest/Member/EditMembershipTest.php | 157 - .../Member/FixedMembershipTypeTest.php | 658 ---- .../Member/InheritedMembershipTest.php | 523 ---- .../Member/OfflineAutoRenewMembershipTest.php | 149 - .../OfflineMembershipAddPricesetTest.php | 452 --- .../Member/OfflineMembershipRenewTest.php | 429 --- .../OnlineAutoRenewMembershipGCTest.php | 87 - .../Member/OnlineAutoRenewMembershipTest.php | 214 -- .../OnlineMembershipAddPricesetTest.php | 526 ---- .../Member/OnlineMembershipCreateTest.php | 629 ---- .../Member/OnlineMembershipRenewTest.php | 959 ------ .../Member/SeperateMembershipPaymentTest.php | 166 - .../WebTest/Member/StandaloneAddTest.php | 258 -- .../Member/UpdateMembershipScriptTest.php | 132 - .../WebTest/Pledge/AddCancelPaymentTest.php | 125 - .../WebTest/Pledge/ContactContextAddTest.php | 121 - .../ContactContextPledgePaymentAddTest.php | 455 --- .../Pledge/StandaloneAddDeleteTest.php | 144 - .../WebTest/Pledge/StandaloneAddTest.php | 45 - .../WebTest/Profile/BatchUpdateTest.php | 748 ----- tests/phpunit/WebTest/Profile/DedupeTest.php | 91 - .../Profile/MultiRecordProfileAddTest.php | 407 --- .../WebTest/Profile/ProfileAddTest.php | 333 --- .../WebTest/Profile/ProfileCountryState.php | 155 - .../Profile/ProfileGroupSubscriptionTest.php | 146 - tests/phpunit/WebTest/Profile/SearchTest.php | 251 -- tests/phpunit/WebTest/README | 4 - .../phpunit/WebTest/Release/InstallScript.php | 67 - .../WebTest/Release/ReleaseTestCase.php | 64 - .../phpunit/WebTest/Release/UpgradeScript.php | 51 - tests/phpunit/WebTest/Report/AddTest.php | 202 -- .../WebTest/Report/DonarReportTest.php | 154 - .../WebTest/Report/LoggingReportTest.php | 381 --- .../Report/RolePermissionReportTest.php | 260 -- tests/phpunit/WebTest/Utils/RedirectTest.php | 125 - .../import/ImportActivityTestWHdrs.csv | 1 - .../import/ImportContactTestWHdrs.csv | 1 - .../resources/import/ImportContribs1.csv | 1 - .../resources/import/ImportContribs2.csv | 1 - .../resources/import/ImportContribsExtID.csv | 1 - .../import/ImportContribs_custom.csv | 1 - .../resources/import/ImportHouse_Update.csv | 1 - .../import/ImportHouseholds_WHdrs.csv | 1 - .../resources/import/ImportIndiv_Update.csv | 1 - .../resources/import/ImportOrgs_Update.csv | 1 - .../resources/import/ImportOrgs_WHdrs.csv | 1 - .../resources/import/Import_Participants.csv | 1 - 184 files changed, 52327 deletions(-) delete mode 100644 tests/phpunit/CiviTest/CiviSeleniumSettings.auto.php delete mode 100644 tests/phpunit/CiviTest/CiviSeleniumSettings.php.txt delete mode 100644 tests/phpunit/CiviTest/CiviSeleniumTestCase.php delete mode 100644 tests/phpunit/WebTest/ACL/AssignUsersToRolesTest.php delete mode 100644 tests/phpunit/WebTest/Activity/AddRecurringActivityTest.php delete mode 100644 tests/phpunit/WebTest/Activity/ContactContextAddTest.php delete mode 100644 tests/phpunit/WebTest/Activity/IcalTest.php delete mode 100644 tests/phpunit/WebTest/Activity/StandaloneAddTest.php delete mode 100644 tests/phpunit/WebTest/Admin/CustomAddTest.php delete mode 100644 tests/phpunit/WebTest/Admin/CustomAddTestSameField.php delete mode 100644 tests/phpunit/WebTest/Admin/Form/ScheduleReminderTest.php delete mode 100644 tests/phpunit/WebTest/Admin/Form/Setting/DebuggingTest.php delete mode 100644 tests/phpunit/WebTest/Admin/Form/Setting/LocalizationTest.php delete mode 100644 tests/phpunit/WebTest/Admin/MoveCustomDataTest.php delete mode 100644 tests/phpunit/WebTest/Admin/RelationshipTypeAddTest.php delete mode 100644 tests/phpunit/WebTest/AllTests.php delete mode 100644 tests/phpunit/WebTest/Campaign/ActivityTest.php delete mode 100644 tests/phpunit/WebTest/Campaign/CampaignDescriptionTest.php delete mode 100644 tests/phpunit/WebTest/Campaign/MailingTest.php delete mode 100644 tests/phpunit/WebTest/Campaign/MembershipTest.php delete mode 100644 tests/phpunit/WebTest/Campaign/OfflineContributionTest.php delete mode 100644 tests/phpunit/WebTest/Campaign/OfflineEventRegistrationTest.php delete mode 100644 tests/phpunit/WebTest/Campaign/OnlineContributionTest.php delete mode 100644 tests/phpunit/WebTest/Campaign/OnlineEventRegistrationTest.php delete mode 100644 tests/phpunit/WebTest/Campaign/PetitionUsageScenarioTest.php delete mode 100644 tests/phpunit/WebTest/Campaign/PledgeTest.php delete mode 100644 tests/phpunit/WebTest/Campaign/SurveyUsageScenarioTest.php delete mode 100644 tests/phpunit/WebTest/Case/ActivityToCaseTest.php delete mode 100644 tests/phpunit/WebTest/Case/AddCaseTest.php delete mode 100644 tests/phpunit/WebTest/Case/AddCaseTypeTest.php delete mode 100644 tests/phpunit/WebTest/Case/CaseCustomFieldsTest.php delete mode 100644 tests/phpunit/WebTest/Case/CaseDashboardTest.php delete mode 100644 tests/phpunit/WebTest/Contact/AddCmsUserTest.php delete mode 100644 tests/phpunit/WebTest/Contact/AddContactsToEventAdvancedSearchTest.php delete mode 100644 tests/phpunit/WebTest/Contact/AddTest.php delete mode 100644 tests/phpunit/WebTest/Contact/AddViaProfileTest.php delete mode 100644 tests/phpunit/WebTest/Contact/AddressParsingTest.php delete mode 100644 tests/phpunit/WebTest/Contact/AdvanceSearchPaneTest.php delete mode 100644 tests/phpunit/WebTest/Contact/AdvanceSearchPrivacyOptionsTest.php delete mode 100644 tests/phpunit/WebTest/Contact/AdvancedSearchTest.php delete mode 100644 tests/phpunit/WebTest/Contact/AdvancedSearchedRelatedContactTest.php delete mode 100644 tests/phpunit/WebTest/Contact/ContactReferenceFieldTest.php delete mode 100644 tests/phpunit/WebTest/Contact/ContactTagTest.php delete mode 100644 tests/phpunit/WebTest/Contact/CreateCmsUserFromContactTest.php delete mode 100644 tests/phpunit/WebTest/Contact/CustomDataAddTest.php delete mode 100644 tests/phpunit/WebTest/Contact/DeceasedContactsAdvancedSearchTest.php delete mode 100644 tests/phpunit/WebTest/Contact/DupeContactTest.php delete mode 100644 tests/phpunit/WebTest/Contact/EditContactTest.php delete mode 100644 tests/phpunit/WebTest/Contact/GroupAddTest.php delete mode 100644 tests/phpunit/WebTest/Contact/InlineFieldsEditTest.php delete mode 100644 tests/phpunit/WebTest/Contact/MergeContactsTest.php delete mode 100644 tests/phpunit/WebTest/Contact/MultipleContactSubTypes.php delete mode 100644 tests/phpunit/WebTest/Contact/PrevNextTest.php delete mode 100644 tests/phpunit/WebTest/Contact/PrivacyOptionSearchTest.php delete mode 100644 tests/phpunit/WebTest/Contact/ProfileChecksumTest.php delete mode 100644 tests/phpunit/WebTest/Contact/RelationshipAddTest.php delete mode 100644 tests/phpunit/WebTest/Contact/SearchBuilderTest.php delete mode 100644 tests/phpunit/WebTest/Contact/SearchTest.php delete mode 100644 tests/phpunit/WebTest/Contact/SearchbyDateFilterTest.php delete mode 100644 tests/phpunit/WebTest/Contact/SignatureTest.php delete mode 100644 tests/phpunit/WebTest/Contact/TagAddTest.php delete mode 100644 tests/phpunit/WebTest/Contact/TagSetSearchTest.php delete mode 100644 tests/phpunit/WebTest/Contact/TaskActionAddToGroupTest.php delete mode 100644 tests/phpunit/WebTest/Contact/TaskActionSendMassMailing.php delete mode 100644 tests/phpunit/WebTest/Contact/TaskActionSendSMS.php delete mode 100644 tests/phpunit/WebTest/Contact/UpdateProfileTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/AddBatchesTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/AddPricesetTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/ConfirmOptionalTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/ContactContextAddTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/OfflineContributionTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/OfflineRecurContributionTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/OnBehalfOfOrganization.php delete mode 100644 tests/phpunit/WebTest/Contribute/OnlineContributionTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/OnlineMultiplePaymentProcessorTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/OnlineRecurContributionTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/PCPAddTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/StandaloneAddTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/UpdateBatchPendingContributionTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/UpdateContributionTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/UpdatePendingContributionTest.php delete mode 100644 tests/phpunit/WebTest/Contribute/VerifySSLContributionTest.php delete mode 100644 tests/phpunit/WebTest/Event/AddEventTest.php delete mode 100644 tests/phpunit/WebTest/Event/AddParticipationTest.php delete mode 100644 tests/phpunit/WebTest/Event/AddPricesetTest.php delete mode 100644 tests/phpunit/WebTest/Event/AddRecurringEventTest.php delete mode 100644 tests/phpunit/WebTest/Event/AdditionalPaymentTest.php delete mode 100644 tests/phpunit/WebTest/Event/ChangeParticipantStatus.php delete mode 100644 tests/phpunit/WebTest/Event/EventListingTest.php delete mode 100644 tests/phpunit/WebTest/Event/EventWaitListTest.php delete mode 100644 tests/phpunit/WebTest/Event/MultipleEventRegistrationbyCartTest.php delete mode 100644 tests/phpunit/WebTest/Event/MultiprofileEventTest.php delete mode 100644 tests/phpunit/WebTest/Event/PCPAddTest.php delete mode 100644 tests/phpunit/WebTest/Event/ParticipantCountTest.php delete mode 100644 tests/phpunit/WebTest/Event/ParticipantSearchTest.php delete mode 100644 tests/phpunit/WebTest/Event/PricesetMaxCountTest.php delete mode 100644 tests/phpunit/WebTest/Event/TellAFriendTest.php delete mode 100644 tests/phpunit/WebTest/Export/ContactTest.php delete mode 100644 tests/phpunit/WebTest/Export/ExportCiviSeleniumTestCase.php delete mode 100644 tests/phpunit/WebTest/Financial/FinancialAccountTest.php delete mode 100644 tests/phpunit/WebTest/Financial/FinancialAccountTypeTest.php delete mode 100644 tests/phpunit/WebTest/Financial/FinancialBatchExport.php delete mode 100644 tests/phpunit/WebTest/Generic/CheckActivityTest.php delete mode 100644 tests/phpunit/WebTest/Generic/CheckDashboardTest.php delete mode 100644 tests/phpunit/WebTest/Generic/CheckFindTest.php delete mode 100644 tests/phpunit/WebTest/Generic/GeneralClickAroundTest.php delete mode 100644 tests/phpunit/WebTest/Grant/ContactContextAddTest.php delete mode 100644 tests/phpunit/WebTest/Grant/CustomFieldsetTest.php delete mode 100644 tests/phpunit/WebTest/Grant/StandaloneAddTest.php delete mode 100644 tests/phpunit/WebTest/Import/ActivityTest.php delete mode 100644 tests/phpunit/WebTest/Import/AddressImportTest.php delete mode 100644 tests/phpunit/WebTest/Import/AddressParsingTest.php delete mode 100644 tests/phpunit/WebTest/Import/ContactCustomDataTest.php delete mode 100644 tests/phpunit/WebTest/Import/ContactSubtypeTest.php delete mode 100644 tests/phpunit/WebTest/Import/ContactTest.php delete mode 100644 tests/phpunit/WebTest/Import/ContributionTest.php delete mode 100644 tests/phpunit/WebTest/Import/CustomDataTest.php delete mode 100644 tests/phpunit/WebTest/Import/DateFormatTest.php delete mode 100644 tests/phpunit/WebTest/Import/DuplicateMatchingTest.php delete mode 100644 tests/phpunit/WebTest/Import/GroupTest.php delete mode 100644 tests/phpunit/WebTest/Import/ImportCiviSeleniumTestCase.php delete mode 100644 tests/phpunit/WebTest/Import/MatchExternalIdTest.php delete mode 100644 tests/phpunit/WebTest/Import/MemberTest.php delete mode 100644 tests/phpunit/WebTest/Import/MultipleRelationshipTest.php delete mode 100644 tests/phpunit/WebTest/Import/ParticipantTest.php delete mode 100644 tests/phpunit/WebTest/Import/SavedMappingTest.php delete mode 100644 tests/phpunit/WebTest/Import/TagTest.php delete mode 100644 tests/phpunit/WebTest/Mailing/ABMailingTest.php delete mode 100644 tests/phpunit/WebTest/Mailing/AddMessageTemplateTest.php delete mode 100644 tests/phpunit/WebTest/Mailing/AddNewMailingComponentTest.php delete mode 100644 tests/phpunit/WebTest/Mailing/MailingTest.php delete mode 100644 tests/phpunit/WebTest/Mailing/SpoolTest.php delete mode 100644 tests/phpunit/WebTest/Mailing/ValidateBodyMailingComponentTest.php delete mode 100644 tests/phpunit/WebTest/Member/BatchUpdateViaProfileTest.php delete mode 100644 tests/phpunit/WebTest/Member/ContactContextAddTest.php delete mode 100644 tests/phpunit/WebTest/Member/DefaultMembershipPricesetTest.php delete mode 100644 tests/phpunit/WebTest/Member/EditMembershipTest.php delete mode 100644 tests/phpunit/WebTest/Member/FixedMembershipTypeTest.php delete mode 100644 tests/phpunit/WebTest/Member/InheritedMembershipTest.php delete mode 100644 tests/phpunit/WebTest/Member/OfflineAutoRenewMembershipTest.php delete mode 100644 tests/phpunit/WebTest/Member/OfflineMembershipAddPricesetTest.php delete mode 100644 tests/phpunit/WebTest/Member/OfflineMembershipRenewTest.php delete mode 100644 tests/phpunit/WebTest/Member/OnlineAutoRenewMembershipGCTest.php delete mode 100644 tests/phpunit/WebTest/Member/OnlineAutoRenewMembershipTest.php delete mode 100644 tests/phpunit/WebTest/Member/OnlineMembershipAddPricesetTest.php delete mode 100644 tests/phpunit/WebTest/Member/OnlineMembershipCreateTest.php delete mode 100644 tests/phpunit/WebTest/Member/OnlineMembershipRenewTest.php delete mode 100644 tests/phpunit/WebTest/Member/SeperateMembershipPaymentTest.php delete mode 100644 tests/phpunit/WebTest/Member/StandaloneAddTest.php delete mode 100644 tests/phpunit/WebTest/Member/UpdateMembershipScriptTest.php delete mode 100644 tests/phpunit/WebTest/Pledge/AddCancelPaymentTest.php delete mode 100644 tests/phpunit/WebTest/Pledge/ContactContextAddTest.php delete mode 100644 tests/phpunit/WebTest/Pledge/ContactContextPledgePaymentAddTest.php delete mode 100644 tests/phpunit/WebTest/Pledge/StandaloneAddDeleteTest.php delete mode 100644 tests/phpunit/WebTest/Pledge/StandaloneAddTest.php delete mode 100644 tests/phpunit/WebTest/Profile/BatchUpdateTest.php delete mode 100644 tests/phpunit/WebTest/Profile/DedupeTest.php delete mode 100644 tests/phpunit/WebTest/Profile/MultiRecordProfileAddTest.php delete mode 100644 tests/phpunit/WebTest/Profile/ProfileAddTest.php delete mode 100644 tests/phpunit/WebTest/Profile/ProfileCountryState.php delete mode 100644 tests/phpunit/WebTest/Profile/ProfileGroupSubscriptionTest.php delete mode 100644 tests/phpunit/WebTest/Profile/SearchTest.php delete mode 100644 tests/phpunit/WebTest/README delete mode 100644 tests/phpunit/WebTest/Release/InstallScript.php delete mode 100644 tests/phpunit/WebTest/Release/ReleaseTestCase.php delete mode 100644 tests/phpunit/WebTest/Release/UpgradeScript.php delete mode 100644 tests/phpunit/WebTest/Report/AddTest.php delete mode 100644 tests/phpunit/WebTest/Report/DonarReportTest.php delete mode 100644 tests/phpunit/WebTest/Report/LoggingReportTest.php delete mode 100644 tests/phpunit/WebTest/Report/RolePermissionReportTest.php delete mode 100644 tests/phpunit/WebTest/Utils/RedirectTest.php delete mode 100644 tests/phpunit/WebTest/resources/import/ImportActivityTestWHdrs.csv delete mode 100644 tests/phpunit/WebTest/resources/import/ImportContactTestWHdrs.csv delete mode 100644 tests/phpunit/WebTest/resources/import/ImportContribs1.csv delete mode 100644 tests/phpunit/WebTest/resources/import/ImportContribs2.csv delete mode 100644 tests/phpunit/WebTest/resources/import/ImportContribsExtID.csv delete mode 100644 tests/phpunit/WebTest/resources/import/ImportContribs_custom.csv delete mode 100644 tests/phpunit/WebTest/resources/import/ImportHouse_Update.csv delete mode 100644 tests/phpunit/WebTest/resources/import/ImportHouseholds_WHdrs.csv delete mode 100644 tests/phpunit/WebTest/resources/import/ImportIndiv_Update.csv delete mode 100644 tests/phpunit/WebTest/resources/import/ImportOrgs_Update.csv delete mode 100644 tests/phpunit/WebTest/resources/import/ImportOrgs_WHdrs.csv delete mode 100644 tests/phpunit/WebTest/resources/import/Import_Participants.csv diff --git a/tests/phpunit/CiviTest/CiviSeleniumSettings.auto.php b/tests/phpunit/CiviTest/CiviSeleniumSettings.auto.php deleted file mode 100644 index cec0a0fa382f..000000000000 --- a/tests/phpunit/CiviTest/CiviSeleniumSettings.auto.php +++ /dev/null @@ -1,65 +0,0 @@ -sandboxURL = substr($GLOBALS['_CV']['CMS_URL'], 0, strlen($GLOBALS['_CV']['CMS_URL']) - strlen($path)); - $this->sandboxPATH = $path; - $this->fullSandboxPath = $GLOBALS['_CV']['CMS_URL']; - $this->adminUsername = $GLOBALS['_CV']['ADMIN_USER']; - $this->adminPassword = $GLOBALS['_CV']['ADMIN_PASS']; - $this->username = $GLOBALS['_CV']['DEMO_USER']; - $this->password = $GLOBALS['_CV']['DEMO_PASS']; - $this->siteKey = CIVICRM_SITE_KEY; - $this->adminApiKey = md5('apikeyadmin' . $GLOBALS['_CV']['CMS_DB_DSN'] . CIVICRM_SITE_KEY); - $this->cookies = array(); - } - - // /** - // * @return array - // */ - // function createConstCookie() { - // global $civibuild; - // $now = time(); - // $civiConsts = array( - // 'CIVICRM_DSN' => CIVICRM_DSN, - // 'CIVICRM_UF_DSN' => CIVICRM_UF_DSN, - // 'ts' => $now, - // 'sig' => md5(implode(';;', array(CIVICRM_DSN, CIVICRM_UF_DSN, $civibuild['SITE_TOKEN'], $now))), - // ); - // - // return array( - // 'name' => 'civiConsts', - // 'value' => urlencode(json_encode($civiConsts)), - // ); - // } - -} diff --git a/tests/phpunit/CiviTest/CiviSeleniumSettings.php.txt b/tests/phpunit/CiviTest/CiviSeleniumSettings.php.txt deleted file mode 100644 index 37b868d4875c..000000000000 --- a/tests/phpunit/CiviTest/CiviSeleniumSettings.php.txt +++ /dev/null @@ -1,72 +0,0 @@ -fullSandboxPath = $this->sandboxURL . $this->sandboxPATH; - // $this->cookies[] = array( - // 'name' => 'mycookie', - // 'value' => 'myvalue', - // 'path' => '/', - // 'max_age' => 24*60*60, - // );; - } - -} -?> diff --git a/tests/phpunit/CiviTest/CiviSeleniumTestCase.php b/tests/phpunit/CiviTest/CiviSeleniumTestCase.php deleted file mode 100644 index 82f342a12b77..000000000000 --- a/tests/phpunit/CiviTest/CiviSeleniumTestCase.php +++ /dev/null @@ -1,2661 +0,0 @@ -loggedInAs = NULL; - - $this->settings = new CiviSeleniumSettings(); - if (property_exists($this->settings, 'serverStartupTimeOut') && $this->settings->serverStartupTimeOut) { - global $CiviSeleniumTestCase_polled; - if (!$CiviSeleniumTestCase_polled) { - $CiviSeleniumTestCase_polled = TRUE; - CRM_Utils_Network::waitForServiceStartup( - $this->drivers[0]->getHost(), - $this->drivers[0]->getPort(), - $this->settings->serverStartupTimeOut - ); - } - } - - // autoload - require_once 'CRM/Core/ClassLoader.php'; - CRM_Core_ClassLoader::singleton()->register(); - - // also initialize a connection to the db - // FIXME: not necessary for most tests, consider moving into functions that need this - $config = CRM_Core_Config::singleton(); - } - - protected function setUp() { - $this->setBrowser($this->settings->browser); - // Make sure that below strings have path separator at the end - $this->setBrowserUrl($this->settings->sandboxURL); - $this->sboxPath = $this->settings->sandboxPATH; - if (property_exists($this->settings, 'rcHost') && $this->settings->rcHost) { - $this->setHost($this->settings->rcHost); - } - if (property_exists($this->settings, 'rcPort') && $this->settings->rcPort) { - $this->setPort($this->settings->rcPort); - } - $this->settingCache = array(); - } - - /** - * @return string - */ - protected function prepareTestSession() { - $result = parent::prepareTestSession(); - - // Set any cookies required by local installation - // Note: considered doing this in setUp(), but the Selenium session wasn't yet initialized. - if (property_exists($this->settings, 'cookies')) { - // We don't really care about this page, but it seems we need - // to open a page before setting a cookie. - $this->open($this->sboxPath); - $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->setCookies($this->settings->cookies); - } - return $result; - } - - /** - * @param array $cookies - * Each item is an Array with keys: - * - name: string - * - value: string; note that RFC's don't define particular encoding scheme, so - * you must pick one yourself and pre-encode; does not allow values with - * commas, semicolons, or whitespace - * - path: string; default: '/' - * - max_age: int; default: 1 week (7*24*60*60) - */ - protected function setCookies($cookies) { - foreach ($cookies as $cookie) { - if (!isset($cookie['path'])) { - $cookie['path'] = '/'; - } - if (!isset($cookie['max_age'])) { - $cookie['max_age'] = 7 * 24 * 60 * 60; - } - $this->deleteCookie($cookie['name'], $cookie['path']); - $optionExprs = array(); - foreach ($cookie as $key => $value) { - if ($key != 'name' && $key != 'value') { - $optionExprs[] = "$key=$value"; - } - } - $this->createCookie("{$cookie['name']}={$cookie['value']}", implode(', ', $optionExprs)); - } - } - - protected function tearDown() { - } - - /** - * Authenticate as drupal user. - * @param $user : (str) the key 'user' or 'admin', or a literal username - * @param $pass : (str) if $user is a literal username and not 'user' or 'admin', supply the password - */ - public function webtestLogin($user = 'user', $pass = NULL) { - // If already logged in as correct user, do nothing - if ($this->loggedInAs === $user) { - return; - } - // If we are logged in as a different user, log out first - if ($this->loggedInAs) { - $this->webtestLogout(); - } - $this->open("{$this->sboxPath}user"); - // Lookup username & password if not supplied - $username = $user; - if ($pass === NULL) { - $pass = $user == 'admin' ? $this->settings->adminPassword : $this->settings->password; - $username = $user == 'admin' ? $this->settings->adminUsername : $this->settings->username; - } - // Make sure login form is available - $this->waitForElementPresent('edit-submit'); - $this->type('edit-name', $username); - $this->type('edit-pass', $pass); - $this->click('edit-submit'); - $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->loggedInAs = $user; - } - - public function webtestLogout() { - if ($this->loggedInAs) { - $this->open($this->sboxPath . "user/logout"); - $this->waitForPageToLoad($this->getTimeoutMsec()); - } - $this->loggedInAs = NULL; - } - - /** - * Open an internal path beginning with 'civicrm/' - * - * @param string $url - * omit the 'civicrm/' it will be added for you. - * @param string|array $args - * optional url arguments. - * @param $waitFor - * Page element to wait for - using this is recommended to ensure the document is fully loaded. - * - * Although it doesn't seem to do much now, using this function is recommended for - * opening all civi pages, and using the $args param is also strongly encouraged - * This will make it much easier to run webtests in other CMSs in the future - */ - public function openCiviPage($url, $args = NULL, $waitFor = 'civicrm-footer') { - // Construct full url with args - // This could be extended in future to work with other CMS style urls - if ($args) { - if (is_array($args)) { - $sep = '?'; - foreach ($args as $key => $val) { - $url .= $sep . $key . '=' . $val; - $sep = '&'; - } - } - else { - $url .= "?$args"; - } - } - $this->open("{$this->sboxPath}civicrm/$url"); - $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->checkForErrorsOnPage(); - if ($waitFor) { - $this->waitForElementPresent($waitFor); - } - } - - /** - * Click on a link or button. - * Wait for the page to load - * Wait for an element to be present - * @param $element - * @param string $waitFor - * @param bool $waitForPageLoad - */ - public function clickLink($element, $waitFor = 'civicrm-footer', $waitForPageLoad = TRUE) { - $this->click($element); - // conditional wait for page load e.g for ajax form save - if ($waitForPageLoad) { - $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->checkForErrorsOnPage(); - } - if ($waitFor) { - $this->waitForElementPresent($waitFor); - } - } - - /** - * Click a link or button and wait for an ajax dialog to load. - * @param string $element - * @param string $waitFor - */ - public function clickPopupLink($element, $waitFor = NULL) { - $this->clickAjaxLink($element, 'css=.ui-dialog'); - if ($waitFor) { - $this->waitForElementPresent($waitFor); - } - } - - /** - * Click a link or button and wait for ajax content to load or refresh. - * @param string $element - * @param string $waitFor - */ - public function clickAjaxLink($element, $waitFor = NULL) { - $this->click($element); - if ($waitFor) { - $this->waitForElementPresent($waitFor); - } - $this->waitForAjaxContent(); - } - - /** - * Force a link to open full-page, even if it would normally open in a popup - * @note: works with links only, not buttons - * @param string $element - * @param string $waitFor - */ - public function clickLinkSuppressPopup($element, $waitFor = 'civicrm-footer') { - $link = $this->getAttribute($element . '@href'); - $this->open($link); - $this->waitForPageToLoad($this->getTimeoutMsec()); - if ($waitFor) { - $this->waitForElementPresent($waitFor); - } - } - - /** - * Wait for all ajax snippets to finish loading. - */ - public function waitForAjaxContent() { - $this->waitForElementNotPresent('css=.blockOverlay'); - // Some ajax calls happen in pairs (e.g. submit a popup form then refresh the underlying content) - // So we'll wait a sec and recheck to see if any more stuff is loading - sleep(1); - if ($this->isElementPresent('css=.blockOverlay')) { - $this->waitForAjaxContent(); - } - } - - /** - * Call the API on the local server. - * (kind of defeats the point of a webtest - see CRM-11889) - * @param $entity - * @param $action - * @param $params - * @return array|int - */ - public function webtest_civicrm_api($entity, $action, $params) { - if (!isset($params['version'])) { - $params['version'] = 3; - } - - $result = civicrm_api($entity, $action, $params); - $this->assertAPISuccess($result); - return $result; - } - - /** - * Call the API on the remote server using the AJAX endpoint. - * - * @see CRM-11889 - * @param $entity - * @param $action - * @param array $params - * @return mixed - */ - public function rest_civicrm_api($entity, $action, $params = array()) { - $params += array( - 'version' => 3, - ); - static $reqId = 0; - $reqId++; - - $jsCmd = ' - setTimeout(function(){ - CRM.api3("@entity", "@action", @params).then(function(a){ - cj("