aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/command/clear_cache_command_test.rs
blob: 29a745b2f443e391cff078f8eb7dbc55e9683e58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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!()
}