aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/command/init_command_test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests/command/init_command_test.rs')
-rw-r--r--crates/shirabe/tests/command/init_command_test.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/shirabe/tests/command/init_command_test.rs b/crates/shirabe/tests/command/init_command_test.rs
index 69d721b..e7cda3e 100644
--- a/crates/shirabe/tests/command/init_command_test.rs
+++ b/crates/shirabe/tests/command/init_command_test.rs
@@ -3,11 +3,20 @@
// The author/namespace/git-config helpers are protected methods exercised via reflection
// in PHP; the run cases need the ApplicationTester. Neither is available here.
+use shirabe_php_shim::server_set;
+
+fn set_up() {
+ server_set("COMPOSER_DEFAULT_AUTHOR", "John Smith".to_string());
+ server_set("COMPOSER_DEFAULT_EMAIL", "john@example.com".to_string());
+}
+
macro_rules! stub {
($name:ident) => {
#[test]
#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"]
fn $name() {
+ set_up();
+
todo!()
}
};