Skip to content

Commit

Permalink
Account Protection: Restore JetpackTestEnvironment (#41736)
Browse files Browse the repository at this point in the history
* Restore JetpackTestEnvironment

* Update lock files
  • Loading branch information
nateweller authored Feb 12, 2025
1 parent 95f80c1 commit 9032fde
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
7 changes: 1 addition & 6 deletions projects/packages/account-protection/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
"automattic/jetpack-changelogger": "@dev",
"automattic/wordbless": "^0.4.2"
"automattic/jetpack-test-environment": "@dev"
},
"autoload": {
"classmap": [
Expand Down Expand Up @@ -58,10 +58,5 @@
},
"suggest": {
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
},
"config": {
"allow-plugins": {
"roots/wordpress-core-installer": true
}
}
}
3 changes: 2 additions & 1 deletion projects/packages/account-protection/tests/php/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
*/
require_once __DIR__ . '/../../vendor/autoload.php';

\WorDBless\Load::load();
// Initialize WordPress test environment
\Automattic\Jetpack\Test_Environment::init();
6 changes: 3 additions & 3 deletions projects/plugins/jetpack/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions projects/plugins/protect/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9032fde

Please sign in to comment.