Skip to content

Commit

Permalink
Merge branch 'epic/time-based-form-goals-GIVE-565' into feature/form-…
Browse files Browse the repository at this point in the history
…goal-ui-GIVE-676
  • Loading branch information
kjohnson authored Apr 29, 2024
2 parents abeee7f + aa9572d commit 3f22970
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 4 deletions.
2 changes: 1 addition & 1 deletion blocks/donation-form-grid/edit/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ const Inspector = ({attributes, setAttributes}) => {
</PanelBody>
</Panel>
<PanelColorSettings
title={ __( 'Color Settings' ) }
title={ __( 'Color Settings', 'give' ) }
colorSettings={ [
{
value: tagBackgroundColor
Expand Down
2 changes: 1 addition & 1 deletion src/Donations/resources/components/DonationsListTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export default function DonationsListTable() {
{__('Import Donations', 'give')}
</a>
<button className={tableStyles.addFormButton} onClick={showLegacyDonations}>
{__('Switch to Legacy View')}
{__('Switch to Legacy View', 'give')}
</button>
</ListTablePage>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ This creates a consistent separator between the tabs and the rest of the sidebar
font-size: 16px;
line-height: 16px;
background-color: var(--givewp-gray-20);
width: 100%;
}

&:checked + label {
Expand Down
3 changes: 2 additions & 1 deletion src/PaymentGateways/PayPalCommerce/AdminSettingFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ private function isCountryInNorthAmerica(): bool
/**
* Return admin guidance notice to fix PayPal on boarding error.
*
* @unreleased Updated phone number for contact
* @since 2.9.6
*
* @param bool $completeMessage
Expand All @@ -248,7 +249,7 @@ public function getAdminGuidanceNotice($completeMessage = true)
if ($this->isCountryInNorthAmerica()) {
$telephone = sprintf(
'<a href="tel:%1$s">%1$s</a>',
'1-888-221-1161'
'1-888-350-2387'
);

$message = sprintf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
echo '</p>
<a href="https://docs.givewp.com/feerecovery-settings-gateway" target="_blank"
class="givewp-payment-gateway-fee-recovery-recommendation_external">';
_e('Recover your fees');
_e('Recover your fees', 'give');
echo '<img
src="' . esc_url(
GIVE_PLUGIN_URL . 'assets/dist/images/list-table/external-link-icon.svg'
Expand Down
64 changes: 64 additions & 0 deletions tests/Unit/TestGive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?php

namespace Give\Tests\Unit;

use Give\Tests\TestCase;

/**
* @unreleased
*/
class TestGive extends TestCase
{
/**
* @unreleased
*/
public function testReadMeVersionMatchesPluginVersion(): void
{
$readme = get_file_data(
trailingslashit(GIVE_PLUGIN_DIR) . "readme.txt",
[
"Version" => "Stable tag"
]
);

$plugin = get_plugin_data(GIVE_PLUGIN_FILE);

$this->assertEquals(GIVE_VERSION, $readme['Version']);
$this->assertEquals(GIVE_VERSION, $plugin['Version']);
$this->assertEquals($readme['Version'], $plugin['Version']);
}

/**
* @unreleased
*/
public function testReadMeRequiresPHPVersionMatchesPluginVersion(): void
{
$readme = get_file_data(
trailingslashit(GIVE_PLUGIN_DIR) . "readme.txt",
[
"RequiresPHP" => "Requires PHP"
]
);

$plugin = get_plugin_data(GIVE_PLUGIN_FILE);

$this->assertEquals($plugin['RequiresPHP'], $readme['RequiresPHP']);
}

/**
* @unreleased
*/
public function testReadMeRequiresWPVersionMatchesPluginHeaderVersion(): void
{
$readme = get_file_data(
trailingslashit(GIVE_PLUGIN_DIR) . "readme.txt",
[
"RequiresWP" => "Requires at least"
]
);

$plugin = get_plugin_data(GIVE_PLUGIN_FILE);

$this->assertEquals($plugin['RequiresWP'], $readme['RequiresWP']);
}
}

0 comments on commit 3f22970

Please sign in to comment.