Rostislav Wolny
cdf7c81a94
Remove unnecessary acceptance_tests_woo_cot_off job
...
The same set of tests run within acceptance_tests_base_and_woo_cot_off job
[MAILPOET-4880]
2022-12-01 12:20:42 -03:00
Rostislav Wolny
86812c5259
Rename acceptance test job to contain info about HPOS configuration
...
[MAILPOET-4880]
2022-12-01 12:20:42 -03:00
David Remer
657302b720
Simplify <Tags> component and add wrapper components
...
[MAILPOET-4628]
2022-12-01 13:36:18 +01:00
Rostislav Wolny
172b5215d2
Fix strict types definition spacing
...
[MAILPOET-4879]
2022-11-30 12:39:19 +01:00
Pavel Dohnal
52a9d9f76c
Remove redundant name from package.json
2022-11-30 12:30:52 +01:00
Pavel Dohnal
8eb7a48d3e
Fix display of Text option in the editor sidebar
...
[MAILPOET-4808]
2022-11-30 12:30:52 +01:00
Rostislav Wolny
a8bceffc9c
Add forgotten strict_types to Homepage page class
...
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
2c728c793a
Redirect to main page instead of emails page from logo and after reinstall
...
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
8d974d8147
Add mainPageSlug to MailPoet module
...
In some places we hardcode emails page as the main page.
This property is meant to be used in places where we want to link
to main plugin page so that the links change when homepage is active
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
8fbc5c270a
Place home at the first position in submenu
...
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
92dc5921df
Set main page to homepage in case the feature is active
...
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
3c3ce37720
Temporarily add static property for MAIN_PAGE_SLUG
...
We need to be able to change it when homepage feature is active.
When we remove the feature flag will switch back to using constant.
Note I also kept the constant in case a third party plugin uses it.
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
f369e399ed
Distinguish main page and emails page
...
There are some cases where we link or redirect to main page but
actually we want to redirect to emails page. It happens that currently they are
the same page, but we need to distinguish these cases for the future when
we switch the main page to new homepage.
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
01aa1e1e52
Refactor page slugs into constants
...
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
2bbc1b7063
Add homepage page and submenu item hidden behind feature flag
...
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
04b8a0ed73
Add feature flag for homepage
...
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
John Oleksowicz
761f7c6537
Prevent issues if other plugins define WC function
...
It's possible that other plugins might define wc_get_page_id, so it's
more important to know that WC is installed/active than to know if the
function itself exists.
For good measure I'm including a cast to int even though the WC version
of the function always returns an integer. This is probably unnecessary
but it protects us from the possibility of the WC version of the
function returning something other than an integer in the future.
[MAILPOET-4834]
2022-11-30 11:03:40 +01:00
Jan Jakes
723dc2c9d3
Fix type errors in tests
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Jan Jakes
d66fbb1c20
Fix confirmed IP value in tests
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Jan Jakes
c2107b8d59
Enable strict types rule for all files
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Jan Jakes
926620e8f8
Ignore strict types rule in all existing files that don't have it
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Jan Jakes
82aeb89854
Use strict types in tests
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Jan Jakes
c67c58709b
Unify spacing of declare statements
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Rostislav Wolny
75b5958a53
Release 4.1.0
2022-11-29 13:56:02 +01:00
Jan Lysý
bba5101669
Replace switching groups' tab by a new function
...
[MAILPOET-4861]
2022-11-29 10:58:11 +01:00
Jan Lysý
b9c5dddbaf
Try switch group multiple times
...
[MAILPOET-4861]
2022-11-29 10:58:11 +01:00
John Oleksowicz
0566b3f5fa
Fix remaining code style issues
...
[MAILPOET-4850]
2022-11-28 22:24:54 +01:00
John Oleksowicz
ac4adac1ab
Fix test class name
...
[MAILPOET-4850]
2022-11-28 22:24:54 +01:00
David Remer
33a9097719
Fix trim(null) issue
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
08c74cdf8b
Fix SlevomatCodingStandard.Namespaces.UnusedUses.MismatchingCaseSensitivity
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
8c5222d850
Fix WordPress.Security.ValidatedSanitizedInput.InputNotSanitized and related errors
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
08c76a46af
Fix Squiz.Classes.ClassFileName.NoMatch and related errors
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
3d24cb1deb
Fix Generic.Classes.DuplicateClassName.Found
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
a151f93be1
Fix Generic.CodeAnalysis.JumbledIncrementer.Found
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
bce6a06c15
Fix Sniffs.ControlSignature.Found
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
10a6e387f3
Fix Squiz.Scope.MethodScope.Missing
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
b6a37f274c
Fix Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
2cdbc68643
Fix Squiz.Classes.ValidClassName.NotCamelCaps
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
7db40b27b5
Fix errors automatically with phpcbf
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
b1760ff676
Add MinimalPluginStandard to lint-staged command
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
293eef2c78
Add MinimalPluginStandard to Robofile
...
./do qa:minimal-plugin-standard will not execute the MinimalPluginStandard phpcs sniffs
./do qa:php has been extended to include the sniffs as well
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
299c6b779e
Remove MinimalPluginStandard from ruleset
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
Rostislav Wolny
842f435976
Add default value for method to StatisticsUnsubscribeEntity
...
When entity is created the default value is not set and it may causes
failures when it is not set additionally.
This commit sets default value and also defines a constant for the default value.
[PREMIUM-211]
2022-11-28 18:21:52 +01:00
Rostislav Wolny
11faf925cc
Refactor time assertions in AutomaticEmailTest to use assert with delta
...
Carbon:setTestNow was not working because we are instantiating the new Carbon instance with value.
This commit updates all DateTime assertions to use the new assertEqualDateTimes method
[MAILPOET-4867]
2022-11-28 14:19:30 +01:00
John Oleksowicz
1295aa21cc
Skip congratulatory email if we know it will fail
...
[MAILPOET-4641]
2022-11-28 14:12:50 +01:00
John Oleksowicz
84cd137c76
Don't switch to MSS when activating key without sending
...
[MAILPOET-4641]
2022-11-28 14:12:50 +01:00
John Oleksowicz
37067dff67
Add state to MSS key check response
...
[MAILPOET-4641]
2022-11-28 14:12:50 +01:00
David Remer
c7f850e1ba
Declare strict types
...
[MAILPOET-4842]
2022-11-28 13:03:06 +01:00
David Remer
b25f2cd5f4
Enable a Trigger to activate a second automation
...
[MAILPOET-4842]
2022-11-28 13:03:06 +01:00
David Remer
af95080b67
Add test for TriggerHandler
...
[MAILPOET-4842]
2022-11-28 13:03:06 +01:00