Commit Graph

21 Commits

Author SHA1 Message Date
7d8b9361c5 Fix: Resolve CI PHPCS and PHPUnit errors
- Correct docblock spacing in Admin class for PHPCS.
- Update AdminTest wp_localize_script mock using Mockery::on() to fix expectation error.
2025-04-18 20:01:13 +01:00
63f2520f70 Fix: Resolve CI errors
- Fix docblock spacing for @phpcs:ignore in Admin class.
- Add WP_Mock for wp_create_nonce() in AdminTest.
2025-04-18 19:58:56 +01:00
cc6acc2a4e Fix: Address CI failures
- Move @phpcs:ignore for unused param above function signature.
- Add WP_Mock for admin_url() in AdminTest to fix PHPUnit error.
2025-04-18 19:55:20 +01:00
ed7d33e2aa Fix: Mock wp_localize_script in AdminTest
- Adds WP_Mock::userFunction for wp_localize_script to resolve PHPUnit error.

Fix: Revert underscore prefix for unused param

- Removes underscore from hook_suffix in Admin class.
- Relies on existing @phpcs:ignore directive.
2025-04-18 19:53:40 +01:00
fb8a998487 Fix: Use WP_Mock::userFunction in AdminTest
- Replaces deprecated expectFunction with userFunction.
- Fixes PHPUnit failure in CI.

Fix: Address PHPCS warning for unused param

- Prefixes unused  with underscore in Admin class.
2025-04-18 19:51:25 +01:00
2a025ec18c Fix: Final PHPCS formatting and WP_Mock expectations for AdminTest 2025-04-18 19:17:51 +01:00
95e4361cd5 Fix: Correct AdminTest setup and PHPCS docblock formatting 2025-04-18 19:16:11 +01:00
643f5c6d41 Fix: Resolve CI dependency conflicts and PHPCS/PHPUnit errors 2025-04-18 19:07:05 +01:00
a5d3c09243 Fix: Correct PHPUnit test assertion and install PHPCS composer installer 2025-04-18 19:01:47 +01:00
c7435f5a49 Fix tests: Update Admin class to match test expectations and use correct WP_Mock assertions 2025-04-18 18:58:47 +01:00
aa136c7a4a Test: Use WP_Mock::onActionAdded assertion instead of userFunction for add_action 2025-04-18 18:55:29 +01:00
b2b8af4216 Fix unit test: set up add_action mock before Admin instantiation and use Mockery::type('callable') for callback argument 2025-04-18 18:47:42 +01:00
a0df887d5c Fix: Instantiate Admin before setting add_action mock to use correct object reference 2025-04-18 18:44:29 +01:00
4d69c446db Fix: Use WP_Mock::userFunction for add_action instead of expectActionAdded 2025-04-18 18:41:06 +01:00
4441106963 Fix: Remove unnecessary is_admin mock from AdminTest 2025-04-18 18:36:54 +01:00
6d3aeb889a Fix: Address PHPCS errors and PHPUnit 7.0 Mockery failure 2025-04-18 18:32:13 +01:00
bcdbbb454c Revert: wp_mock to 0.3.0 and remove :void from AdminTest::setUp 2025-04-18 18:25:03 +01:00
3d739915d7 Fix: Add void return type to AdminTest::setUp and revert wp_mock constraint 2025-04-18 18:22:42 +01:00
1cf46254b7 Fix: Update test workflow for PHP 7.0 compatibility 2025-04-18 17:42:18 +01:00
bfa528c90e Fix test workflow issues with WP_Mock and PHP 7.0 compatibility 2025-04-18 15:46:16 +01:00
c7b590870c Initial commit of WordPress Plugin Starter Template for AI Coding
Some checks failed
Tests / PHP 7.0 (push) Has been cancelled
Tests / PHP 7.4 (push) Has been cancelled
Tests / PHP 8.0 (push) Has been cancelled
Tests / Code Style (push) Has been cancelled
Sync Wiki / Sync Wiki to GitHub (push) Has been cancelled
Release / Build and Release (push) Has been cancelled
2025-04-18 03:09:39 +01:00