aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/plugin/subscriber_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-16 16:26:10 +0900
committernsfisis <nsfisis@gmail.com>2026-08-16 17:34:46 +0900
commit7e7837a559310792dcf312e0c52857450ed781dc (patch)
tree458100fc10851c6e899d30478369dc791543b73c /crates/shirabe/tests/plugin/subscriber_test.rs
parenta9b45cc01afa726bf9acd7f30ad3235593a258e2 (diff)
downloadphp-shirabe-7e7837a559310792dcf312e0c52857450ed781dc.tar.gz
php-shirabe-7e7837a559310792dcf312e0c52857450ed781dc.tar.zst
php-shirabe-7e7837a559310792dcf312e0c52857450ed781dc.zip
refactor(tests): share the PHP worker helpers with the plugin binary
plugin_installer_test.rs carried its own copy of php_runtime_available, lock_php_worker and load_composer_php_runtime, and the other ten files in the binary imported them from there. The bodies matched tests/common/php_worker.rs, so include that instead. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/plugin/subscriber_test.rs')
-rw-r--r--crates/shirabe/tests/plugin/subscriber_test.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/shirabe/tests/plugin/subscriber_test.rs b/crates/shirabe/tests/plugin/subscriber_test.rs
index a08d8d8d..1df4f0e8 100644
--- a/crates/shirabe/tests/plugin/subscriber_test.rs
+++ b/crates/shirabe/tests/plugin/subscriber_test.rs
@@ -3,7 +3,8 @@
//! these tests use a Shirabe-owned fixture (`fixtures/subscriber-v1`) instead of a ported one.
use crate::async_runtime::run;
-use crate::plugin_installer_test::{lock_php_worker, new_installer, php_runtime_available, set_up};
+use crate::php_worker::{lock_php_worker, php_runtime_available};
+use crate::plugin_installer_test::{new_installer, set_up};
use shirabe::installer::InstallerInterface;
use shirabe::package::PackageInterfaceHandle;
use shirabe::package::loader::{ArrayLoader, JsonLoader, JsonLoaderInput};