diff options
Diffstat (limited to 'crates/shirabe/tests/command/clear_cache_command_test.rs')
| -rw-r--r-- | crates/shirabe/tests/command/clear_cache_command_test.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/crates/shirabe/tests/command/clear_cache_command_test.rs b/crates/shirabe/tests/command/clear_cache_command_test.rs index 0e03548..29a745b 100644 --- a/crates/shirabe/tests/command/clear_cache_command_test.rs +++ b/crates/shirabe/tests/command/clear_cache_command_test.rs @@ -1,19 +1,40 @@ //! ref: composer/tests/Composer/Test/Command/ClearCacheCommandTest.php +use shirabe::util::platform::Platform; + +fn tear_down() { + // --no-cache triggers the env to change so make sure the env is cleaned up after these tests run + Platform::clear_env("COMPOSER_CACHE_DIR"); +} + +struct TearDown; + +impl Drop for TearDown { + fn drop(&mut self) { + tear_down(); + } +} + #[test] #[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] fn test_clear_cache_command_success() { + let _tear_down = TearDown; + todo!() } #[test] #[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] fn test_clear_cache_command_with_option_garbage_collection() { + let _tear_down = TearDown; + todo!() } #[test] #[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] fn test_clear_cache_command_with_option_no_cache() { + let _tear_down = TearDown; + todo!() } |
