diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-12 01:28:57 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-16 01:02:47 +0900 |
| commit | 754c41c474194a00ed34190ba228ac36dac609a5 (patch) | |
| tree | 325a04486e0800c51c0c8aa4d1658aac5d597036 /crates/shirabe/tests/plugin/main.rs | |
| parent | 6f55caac4e6e55661305311174e31ec2b0e375b6 (diff) | |
| download | php-shirabe-754c41c474194a00ed34190ba228ac36dac609a5.tar.gz php-shirabe-754c41c474194a00ed34190ba228ac36dac609a5.tar.zst php-shirabe-754c41c474194a00ed34190ba228ac36dac609a5.zip | |
test(plugin): port capability-query tests, record remaining TODO(phase-d) reasons
Implement test_incapable_plugin_is_correctly_detected and
test_querying_non_provided_capability_returns_null_safely against a
real PluginManager, using hand-written PluginInterface/Capable stubs
in place of PHPUnit's ad-hoc mocks. Wire the shared config_stub test
helper into the plugin test binary, and derive Debug on the SetUp
struct per this project's convention.
The remaining plugin_installer_test.rs cases stay #[ignore]d:
install/update/uninstall wiring in PluginInstaller and class
instantiation in PluginManager::register_package are still
TODO(plugin) stubs, so no plugin ever actually gets registered. Each
now records its blocking TODO(plugin) site via // TODO(phase-d).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/plugin/main.rs')
| -rw-r--r-- | crates/shirabe/tests/plugin/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/shirabe/tests/plugin/main.rs b/crates/shirabe/tests/plugin/main.rs index 44705224..5cb77de4 100644 --- a/crates/shirabe/tests/plugin/main.rs +++ b/crates/shirabe/tests/plugin/main.rs @@ -1 +1,4 @@ +#[path = "../common/config_stub.rs"] +mod config_stub; + mod plugin_installer_test; |
