diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-09 00:09:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-09 00:09:58 +0900 |
| commit | 4ab0a1d6ffe9f42a302806ad970bed03a0e1fd86 (patch) | |
| tree | 75380ffe5ed7f473578f886d92a0a924eb3eba15 /crates/mozart/tests | |
| parent | d0d8d43ba37d2179c4bd92018169d48f6633d14e (diff) | |
| download | php-mozart-4ab0a1d6ffe9f42a302806ad970bed03a0e1fd86.tar.gz php-mozart-4ab0a1d6ffe9f42a302806ad970bed03a0e1fd86.tar.zst php-mozart-4ab0a1d6ffe9f42a302806ad970bed03a0e1fd86.zip | |
fix(config): align with Composer's ConfigCommand pipeline
- A1: stub auth keys (bitbucket-oauth.X etc.) with actionable error
- A2: audit.ignore / audit.ignore-abandoned writers with --json/--merge
- A3: scripts.X writer (scalar vs array) and --unset support
- A4: top-level --unset fallback for unknown single-segment keys
- A5: bare --unset extra / suggest / audit support
- A6/A13: disable-tls enable/disable user-visible messages
- A7: editor fallback chain (editor/vim/vi/nano/pico/ed)
- A8: --editor --auth opens auth.json
- A9: silent exit 0 when no setting-key and no --list
- A10: cache-files-maxsize regex validation
- A11: cafile/capath existence check + "null" clearing
- A14: merge_json_values object merge uses existing-wins (PHP `+`)
- A16: repositories.<name>.url sub-path support
- A17: wording "cannot" → "can not" to match Composer exactly
- A19: add_repository normalizes assoc repos, injects name field,
strips stale disable entries
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/tests')
| -rw-r--r-- | crates/mozart/tests/cli_config.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/mozart/tests/cli_config.rs b/crates/mozart/tests/cli_config.rs index e433653..29d20ff 100644 --- a/crates/mozart/tests/cli_config.rs +++ b/crates/mozart/tests/cli_config.rs @@ -29,12 +29,14 @@ fn test_config_single_key() { } #[test] -fn test_config_no_key_fails() { +fn test_config_no_key_silent_success() { + // Mirrors Composer 220-223: no setting-key and no --list → silent exit 0 let project = common::copy_fixture_to_temp("minimal"); common::mozart_cmd() .arg("config") .arg("--working-dir") .arg(project.path()) .assert() - .failure(); + .success() + .stdout(""); } |
