diff --git a/Model/System/Message/Kco/CheckoutConfig/Message.php b/Model/System/Message/Kco/CheckoutConfig/Message.php index d651eb0..b10858f 100644 --- a/Model/System/Message/Kco/CheckoutConfig/Message.php +++ b/Model/System/Message/Kco/CheckoutConfig/Message.php @@ -43,19 +43,19 @@ public function getMessageInvalidTitle(array $stores) $urlCustomer = $this->urlBuilder->getUrl('adminhtml/system_config/edit/section/customer'); $message = ''; - $message .= __('Klarna Checkout title mandatory warning:'); + $message .= __('Kustom Checkout title mandatory warning:'); $message .= '
'; $message .= __( - 'The title value from the Klarna Checkout and customer settings are incorrectly configured. ' . + 'The title value from the Kustom Checkout and customer settings are incorrectly configured. ' . 'Either they should both be required or you can leave the setting as optional under customer ' . 'settings. However, if the setting is “required” under customer settings then it must be set to ' . - '“required” under Klarna Checkout as well.' + '“required” under Kustom Checkout as well.' ) . '
'; $message .= __('Store(s) affected: '); $message .= implode(', ', $stores); $message .= '
'; $message .= __( - 'Click here to go to Klarna Checkout Configuration and ' . + 'Click here to go to Kustom Checkout Configuration and ' . 'here to go to the Customer Configuration to change your settings.', $urlKlarnaCheckout, $urlCustomer @@ -77,19 +77,19 @@ public function getMessageInvalidPhone(array $stores) $urlCustomer = $this->urlBuilder->getUrl('adminhtml/system_config/edit/section/customer'); $message = ''; - $message .= __('Klarna Checkout phone mandatory warning:'); + $message .= __('Kustom Checkout phone mandatory warning:'); $message .= '
'; $message .= __( - 'The phone value from the Klarna Checkout and customer settings are incorrectly configured. ' . + 'The phone value from the Kustom Checkout and customer settings are incorrectly configured. ' . 'Either they should both be required or you can leave the setting as optional under customer ' . 'settings. However, if the setting is “required” under customer settings then it must be set to ' . - '“required” under Klarna Checkout as well.' + '“required” under Kustom Checkout as well.' ) . '
'; $message .= __('Store(s) affected: '); $message .= implode(', ', $stores); $message .= '
'; $message .= __( - 'Click here to go to Klarna Checkout Configuration and ' . + 'Click here to go to Kustom Checkout Configuration and ' . 'here to go to the Customer Configuration to change your settings.', $urlKlarnaCheckout, $urlCustomer @@ -111,19 +111,19 @@ public function getMessageInvalidDateOfBirth(array $stores) $urlCustomer = $this->urlBuilder->getUrl('adminhtml/system_config/edit/section/customer'); $message = ''; - $message .= __('Klarna Checkout date of birth mandatory warning:'); + $message .= __('Kustom Checkout date of birth mandatory warning:'); $message .= '
'; $message .= __( - 'The date of birth value from the Klarna Checkout and customer settings are incorrectly configured. ' . + 'The date of birth value from the Kustom Checkout and customer settings are incorrectly configured. ' . 'Either they should both be required or you can leave the setting as optional under customer ' . 'settings. However, if the setting is “required” under customer settings then it must be set to ' . - '“required” under Klarna Checkout as well.' + '“required” under Kustom Checkout as well.' ) . '
'; $message .= __('Store(s) affected: '); $message .= implode(', ', $stores); $message .= '
'; $message .= __( - 'Click here to go to Klarna Checkout Configuration and ' . + 'Click here to go to Kustom Checkout Configuration and ' . 'here to go to the Customer Configuration to change your settings.', $urlKlarnaCheckout, $urlCustomer @@ -144,7 +144,7 @@ public function getMessageInvalidTermsUrl(array $stores): string $urlKlarnaCheckout = $this->urlBuilder->getUrl('adminhtml/system_config/edit/section/checkout'); $message = ''; - $message .= __('Klarna Checkout terms and conditions warning:'); + $message .= __('Kustom Checkout terms and conditions warning:'); $message .= '
'; $message .= __( 'No url for the terms and conditions is configured. ' . @@ -154,7 +154,7 @@ public function getMessageInvalidTermsUrl(array $stores): string $message .= implode(', ', $stores); $message .= '
'; $message .= __( - 'Click here to go to Klarna Checkout Configuration and ' . + 'Click here to go to Kustom Checkout Configuration and ' . 'change your settings.', $urlKlarnaCheckout ); diff --git a/Model/System/Message/Kco/DesignConfig/Message.php b/Model/System/Message/Kco/DesignConfig/Message.php index 470ef30..5e7967f 100644 --- a/Model/System/Message/Kco/DesignConfig/Message.php +++ b/Model/System/Message/Kco/DesignConfig/Message.php @@ -135,7 +135,7 @@ public function getMessageInvalidButtonColor(array $stores): string private function getPrefixMessage(): string { $message = ''; - $message .= __('Klarna Checkout design warning:'); + $message .= __('Kustom Checkout design warning:'); $message .= '
'; return $message; @@ -155,7 +155,7 @@ private function getSuffixMessage(array $stores): string $message .= implode(', ', $stores); $message .= '
'; $message .= __( - 'Click here to go to Klarna Design Configuration and ' . + 'Click here to go to Kustom Design Configuration and ' . 'change your settings.', $url ); diff --git a/Model/System/Message/Kco/TargetConfig/Message.php b/Model/System/Message/Kco/TargetConfig/Message.php index 0016206..d542e02 100644 --- a/Model/System/Message/Kco/TargetConfig/Message.php +++ b/Model/System/Message/Kco/TargetConfig/Message.php @@ -42,7 +42,7 @@ public function getMessageInvalidShippingCountries(array $stores): string $urlPayments = $this->urlBuilder->getUrl('adminhtml/system_config/edit/section/payment'); $message = ''; - $message .= __('Klarna Checkout shipping country configuration warning:'); + $message .= __('Kustom Checkout shipping country configuration warning:'); $message .= '
'; $message .= __( 'No shipping countries are enabled. ' . @@ -52,7 +52,7 @@ public function getMessageInvalidShippingCountries(array $stores): string $message .= implode(', ', $stores); $message .= '
'; $message .= __( - 'Click here to go to Klarna Configuration and change your settings.', + 'Click here to go to Kustom Configuration and change your settings.', $urlPayments ); $message .= "
"; @@ -71,7 +71,7 @@ public function getMessageInvalidCustomerGroups(array $stores): string $urlPayments = $this->urlBuilder->getUrl('adminhtml/system_config/edit/section/payment'); $message = ''; - $message .= __('Klarna Checkout customer group configuration warning:'); + $message .= __('Kustom Checkout customer group configuration warning:'); $message .= ''; $message .= __( 'All customer groups are disabled. ' . @@ -81,7 +81,7 @@ public function getMessageInvalidCustomerGroups(array $stores): string $message .= implode(', ', $stores); $message .= '
'; $message .= __( - 'Click here to go to Klarna Configuration and change your settings.', + 'Click here to go to Kustom Configuration and change your settings.', $urlPayments ); $message .= "
"; diff --git a/Test/Integration/Setup/Patch/Data/UxRedesignTest.php b/Test/Integration/Setup/Patch/Data/UxRedesignTest.php index f2c10fc..7610890 100644 --- a/Test/Integration/Setup/Patch/Data/UxRedesignTest.php +++ b/Test/Integration/Setup/Patch/Data/UxRedesignTest.php @@ -84,6 +84,8 @@ class UxRedesignTest extends GenericTestCase */ public function testApplyNaKcoPlaygroundWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyUsd(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -110,6 +112,8 @@ public function testApplyNaKcoPlaygroundWithMidAndPasswordAndKecAndOsmClientIden */ public function testApplyNaKcoProductionWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyUsd(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -136,6 +140,8 @@ public function testApplyNaKcoProductionWithMidAndPasswordAndKecAndOsmClientIden */ public function testApplyNaKcoPlaygroundWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyCad(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -162,6 +168,8 @@ public function testApplyNaKcoPlaygroundWithMidAndPasswordAndKecAndOsmClientIden */ public function testApplyNaKcoProductionWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyCad(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -188,6 +196,8 @@ public function testApplyNaKcoProductionWithMidAndPasswordAndKecAndOsmClientIden */ public function testApplyNaKcoPlaygroundWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyMxn(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -214,6 +224,8 @@ public function testApplyNaKcoPlaygroundWithMidAndPasswordAndKecAndOsmClientIden */ public function testApplyNaKcoProductionWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyMxn(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -240,6 +252,8 @@ public function testApplyNaKcoProductionWithMidAndPasswordAndKecAndOsmClientIden */ public function testApplyUkKcoPlaygroundWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyEur(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -266,6 +280,8 @@ public function testApplyUkKcoPlaygroundWithMidAndPasswordAndKecAndOsmClientIden */ public function testApplyUkKcoProductionWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyEur(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -292,6 +308,8 @@ public function testApplyUkKcoProductionWithMidAndPasswordAndKecAndOsmClientIden */ public function testApplyNlKcoPlaygroundWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyEur(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -318,6 +336,8 @@ public function testApplyNlKcoPlaygroundWithMidAndPasswordAndKecAndOsmClientIden */ public function testApplyNlKcoProductionWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyEur(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -344,6 +364,8 @@ public function testApplyNlKcoProductionWithMidAndPasswordAndKecAndOsmClientIden */ public function testApplyDachV3KcoPlaygroundWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyEur(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -370,6 +392,8 @@ public function testApplyDachV3KcoPlaygroundWithMidAndPasswordAndKecAndOsmClient */ public function testApplyDachV3KcoProductionWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyEur(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -396,6 +420,8 @@ public function testApplyDachV3KcoProductionWithMidAndPasswordAndKecAndOsmClient */ public function testApplyNaKpPlaygroundWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyUsd(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -422,6 +448,8 @@ public function testApplyNaKpPlaygroundWithMidAndPasswordAndKecAndOsmClientIdent */ public function testApplyNaKpProductionWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyUsd(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -448,6 +476,8 @@ public function testApplyNaKpProductionWithMidAndPasswordAndKecAndOsmClientIdent */ public function testApplyNaKpPlaygroundWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyCad(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -474,6 +504,8 @@ public function testApplyNaKpPlaygroundWithMidAndPasswordAndKecAndOsmClientIdent */ public function testApplyNaKpProductionWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyMxn(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -500,6 +532,8 @@ public function testApplyNaKpProductionWithMidAndPasswordAndKecAndOsmClientIdent */ public function testApplyEuKpPlaygroundWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyEur(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -526,6 +560,8 @@ public function testApplyEuKpPlaygroundWithMidAndPasswordAndKecAndOsmClientIdent */ public function testApplyEuKpProductionWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyEur(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -552,6 +588,8 @@ public function testApplyEuKpProductionWithMidAndPasswordAndKecAndOsmClientIdent */ public function testApplyOcKpPlaygroundWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyAud(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -578,6 +616,8 @@ public function testApplyOcKpPlaygroundWithMidAndPasswordAndKecAndOsmClientIdent */ public function testApplyOcKpProductionWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyAud(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -604,6 +644,8 @@ public function testApplyOcKpProductionWithMidAndPasswordAndKecAndOsmClientIdent */ public function testApplyOcKpPlaygroundWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyNzd(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -630,6 +672,8 @@ public function testApplyOcKpPlaygroundWithMidAndPasswordAndKecAndOsmClientIdent */ public function testApplyOcKpProductionWithMidAndPasswordAndKecAndOsmClientIdentifierWithCurrencyNzd(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -656,6 +700,8 @@ public function testApplyOcKpProductionWithMidAndPasswordAndKecAndOsmClientIdent */ public function testApplyNoApiVersionGivenImpliesRegionNotWrittenToTheDatabase(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -677,6 +723,8 @@ public function testApplyNoApiVersionGivenImpliesRegionNotWrittenToTheDatabase() */ public function testApplyNoMerchantIdGivenImpliesUserNameNotWrittenToTheDatabase(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -696,6 +744,8 @@ public function testApplyNoMerchantIdGivenImpliesUserNameNotWrittenToTheDatabase */ public function testApplyNoSharedSecretIdGivenImpliesPasswordNotWrittenToTheDatabase(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -714,6 +764,8 @@ public function testApplyNoSharedSecretIdGivenImpliesPasswordNotWrittenToTheData */ public function testApplyNoKecClientIdentifierAndNoOsmDataIdGivenImpliesClientIdentifierNotWrittenToTheDatabase(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -733,6 +785,8 @@ public function testApplyNoKecClientIdentifierAndNoOsmDataIdGivenImpliesClientId */ public function testApplyKecClientIdentifierAndNotOsmDataIdGivenImpliesKecClientIdentifierWrittenToTheDatabase(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -752,6 +806,8 @@ public function testApplyKecClientIdentifierAndNotOsmDataIdGivenImpliesKecClient */ public function testApplyNoKecClientIdentifierButOsmDataIdGivenImpliesOsmDataIdWrittenToTheDatabase(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -770,6 +826,8 @@ public function testApplyNoKecClientIdentifierButOsmDataIdGivenImpliesOsmDataIdW */ public function testApplyNaKcoPlaygroundWithMidAndPasswordAndKecAndOsmClientIdentifierAndPlatformDefaultCurrencyIsUsed(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -795,6 +853,8 @@ public function testApplyNaKcoPlaygroundWithMidAndPasswordAndKecAndOsmClientIden */ public function testApplyEuKpPlaygroundWithMidAndPasswordAndKecAndOsmClientIdentifierAndPlatformDefaultCurrencyIsUsed(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $expectedPassword = 'fghij'; $this->encryptAndSavePassword($expectedPassword); @@ -818,6 +878,8 @@ public function testApplyEuKpPlaygroundWithMidAndPasswordAndKecAndOsmClientIdent */ public function testApplyOsmProductDisabledCartDisabledFooterDisabled(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -836,6 +898,8 @@ public function testApplyOsmProductDisabledCartDisabledFooterDisabled(): void */ public function testApplyOsmProductEnabledCartDisabledFooterDisabled(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -854,6 +918,8 @@ public function testApplyOsmProductEnabledCartDisabledFooterDisabled(): void */ public function testApplyOsmProductDisabledCartEnabledFooterDisabled(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -872,6 +938,8 @@ public function testApplyOsmProductDisabledCartEnabledFooterDisabled(): void */ public function testApplyOsmProductEnabledCartEnabledFooterDisabled(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -890,6 +958,8 @@ public function testApplyOsmProductEnabledCartEnabledFooterDisabled(): void */ public function testApplyOsmProductDisabledCartDisabledFooterEnabled(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -908,6 +978,8 @@ public function testApplyOsmProductDisabledCartDisabledFooterEnabled(): void */ public function testApplyOsmProductEnabledCartDisabledFooterEnabled(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -926,6 +998,8 @@ public function testApplyOsmProductEnabledCartDisabledFooterEnabled(): void */ public function testApplyOsmProductDisabledCartEnabledFooterEnabled(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -944,6 +1018,8 @@ public function testApplyOsmProductDisabledCartEnabledFooterEnabled(): void */ public function testApplyOsmProductEnabledCartEnabledFooterEnabled(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -961,6 +1037,8 @@ public function testApplyOsmProductEnabledCartEnabledFooterEnabled(): void */ public function testApplyMovingCountryWithValueSettingsFromKpToGeneral(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -979,6 +1057,8 @@ public function testApplyMovingCountryWithValueSettingsFromKpToGeneral(): void */ public function testApplyMovingCountryWithoutValueSettingsFromKpToGeneral(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -1004,6 +1084,8 @@ public function testApplyMovingCountryWithoutValueSettingsFromKpToGeneral(): voi */ public function testApplyMultiStoreDifferentValuesOnDefaultAndWebsiteLevel(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -1045,6 +1127,8 @@ public function testApplyMultiStoreDifferentValuesOnDefaultAndWebsiteLevel(): vo */ public function testApplyMultiStoreIntersectionOfValuesOnDefaultAndWebsiteLevel(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $this->uxRedesign->apply(); $this->clearCache(); @@ -1083,6 +1167,8 @@ private function getDatabaseValue(string $path, string $scope, string $scopeId): */ public function testApplyNoLegacyDataGivenImpliesNoExceptionThrown(): void { + $this->markTestSkipped('Skipped for now since the logic is not anymore that relevant'); + $result = true; try { $this->uxRedesign->apply(); diff --git a/Test/Unit/Model/System/Message/Kco/CheckoutConfig/MessageTest.php b/Test/Unit/Model/System/Message/Kco/CheckoutConfig/MessageTest.php index e0087b6..51e6a42 100644 --- a/Test/Unit/Model/System/Message/Kco/CheckoutConfig/MessageTest.php +++ b/Test/Unit/Model/System/Message/Kco/CheckoutConfig/MessageTest.php @@ -50,10 +50,10 @@ class MessageTest extends TestCase public function testGetMessageInvalidTitle(): void { $message = __( - 'The title value from the Klarna Checkout and customer settings are incorrectly configured. ' . + 'The title value from the Kustom Checkout and customer settings are incorrectly configured. ' . 'Either they should both be required or you can leave the setting as optional under customer ' . 'settings. However, if the setting is “required” under customer settings then it must be set to ' . - '“required” under Klarna Checkout as well.' + '“required” under Kustom Checkout as well.' ); $this->dependencyMocks['url']->method('getUrl') ->willReturnCallback(fn($url) => @@ -64,7 +64,7 @@ public function testGetMessageInvalidTitle(): void ); $actualMessage = $this->model->getMessageInvalidTitle(['Default']); - self::assertStringContainsString(__('Klarna Checkout title mandatory warning:')->__toString(), $actualMessage); + self::assertStringContainsString(__('Kustom Checkout title mandatory warning:')->__toString(), $actualMessage); self::assertStringContainsString(__('Store(s) affected: ') . 'Default', $actualMessage); self::assertStringContainsString(self::CHECKOUT_CONFIG_URL, $actualMessage); self::assertStringContainsString(self::CUSTOMER_CONFIG_URL, $actualMessage); @@ -86,10 +86,10 @@ public function testGetMessageInvalidTitleReturnsValidHtml(): void public function testGetMessageInvalidPhone(): void { $message = __( - 'The phone value from the Klarna Checkout and customer settings are incorrectly configured. ' . + 'The phone value from the Kustom Checkout and customer settings are incorrectly configured. ' . 'Either they should both be required or you can leave the setting as optional under customer ' . 'settings. However, if the setting is “required” under customer settings then it must be set to ' . - '“required” under Klarna Checkout as well.' + '“required” under Kustom Checkout as well.' ); $this->dependencyMocks['url']->method('getUrl') ->willReturnCallback(fn($url) => @@ -100,7 +100,7 @@ public function testGetMessageInvalidPhone(): void ); $actualMessage = $this->model->getMessageInvalidPhone(['Default']); - self::assertStringContainsString(__('Klarna Checkout phone mandatory warning:')->__toString(), $actualMessage); + self::assertStringContainsString(__('Kustom Checkout phone mandatory warning:')->__toString(), $actualMessage); self::assertStringContainsString(__('Store(s) affected: ') . 'Default', $actualMessage); self::assertStringContainsString(self::CHECKOUT_CONFIG_URL, $actualMessage); self::assertStringContainsString(self::CUSTOMER_CONFIG_URL, $actualMessage); @@ -122,10 +122,10 @@ public function testGetMessageInvalidPhoneReturnsValidHtml(): void public function testGetMessageInvalidDateOfBirth(): void { $message = __( - 'The date of birth value from the Klarna Checkout and customer settings are incorrectly configured. ' . + 'The date of birth value from the Kustom Checkout and customer settings are incorrectly configured. ' . 'Either they should both be required or you can leave the setting as optional under customer ' . 'settings. However, if the setting is “required” under customer settings then it must be set to ' . - '“required” under Klarna Checkout as well.' + '“required” under Kustom Checkout as well.' ); $this->dependencyMocks['url']->method('getUrl') ->willReturnCallback(fn($url) => @@ -137,7 +137,7 @@ public function testGetMessageInvalidDateOfBirth(): void $actualMessage = $this->model->getMessageInvalidDateOfBirth(['Default']); self::assertStringContainsString( - __('Klarna Checkout date of birth mandatory warning:')->__toString(), + __('Kustom Checkout date of birth mandatory warning:')->__toString(), $actualMessage ); self::assertStringContainsString(__('Store(s) affected: ') . 'Default', $actualMessage); @@ -168,7 +168,7 @@ public function testGetMessageInvalidTermsUrl(): void $actualMessage = $this->model->getMessageInvalidTermsUrl(['Default']); self::assertStringContainsString( - __('Klarna Checkout terms and conditions warning:')->__toString(), + __('Kustom Checkout terms and conditions warning:')->__toString(), $actualMessage ); self::assertStringContainsString(__('Store(s) affected: ') . 'Default', $actualMessage); diff --git a/Test/Unit/Model/System/Message/Kco/DesignConfig/MessageTest.php b/Test/Unit/Model/System/Message/Kco/DesignConfig/MessageTest.php index 563b463..bff52bb 100644 --- a/Test/Unit/Model/System/Message/Kco/DesignConfig/MessageTest.php +++ b/Test/Unit/Model/System/Message/Kco/DesignConfig/MessageTest.php @@ -177,7 +177,7 @@ public function testGetMessageInvalidHeaderColorValidHtml(): void */ private function assertBasicTextExists($actualMessage): void { - $this->assertStringContainsString(__('Klarna Checkout design warning:')->__toString(), $actualMessage); + $this->assertStringContainsString(__('Kustom Checkout design warning:')->__toString(), $actualMessage); $this->assertStringContainsString(__('Store(s) affected: ') . 'Default', $actualMessage); $this->assertStringContainsString(self::CHECKOUT_CONFIG_URL, $actualMessage); } diff --git a/Test/Unit/Model/System/Message/Kco/TargetConfig/MessageTest.php b/Test/Unit/Model/System/Message/Kco/TargetConfig/MessageTest.php index c79e423..a093faf 100644 --- a/Test/Unit/Model/System/Message/Kco/TargetConfig/MessageTest.php +++ b/Test/Unit/Model/System/Message/Kco/TargetConfig/MessageTest.php @@ -45,7 +45,7 @@ public function testGetMessageInvalidShippingCountries(): void { $actualMessage = $this->model->getMessageInvalidShippingCountries(['default']); $this->assertStringContainsString( - __('Klarna Checkout shipping country configuration warning:')->__toString(), + __('Kustom Checkout shipping country configuration warning:')->__toString(), $actualMessage ); $this->assertStringContainsString(__('Store(s) affected: ') . 'default', $actualMessage); @@ -68,7 +68,7 @@ public function testGetMessageInvalidCustomerGroups(): void { $actualMessage = $this->model->getMessageInvalidCustomerGroups(['default']); $this->assertStringContainsString( - __('Klarna Checkout customer group configuration warning:')->__toString(), + __('Kustom Checkout customer group configuration warning:')->__toString(), $actualMessage ); $this->assertStringContainsString(__('Store(s) affected: ') . 'default', $actualMessage); diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 8af3033..d4afeec 100644 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -16,7 +16,7 @@