From f74d43409220ac209d01367bfc40dbc2c85be252 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 28 Jun 2026 07:09:19 +0900 Subject: test(console): port DocumentationTest::testCommand Add __base_application accessor on ApplicationHandle so the test can build an ApplicationDescription the way console commands do. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/console/application.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crates/shirabe/src') diff --git a/crates/shirabe/src/console/application.rs b/crates/shirabe/src/console/application.rs index f3e4292..3e197a2 100644 --- a/crates/shirabe/src/console/application.rs +++ b/crates/shirabe/src/console/application.rs @@ -2577,6 +2577,13 @@ impl ApplicationHandle { pub fn set_catch_exceptions(&self, boolean: bool) { self.0.borrow_mut().set_catch_exceptions(boolean); } + + /// For testing only: exposes the application as a Symfony base-application handle, the way + /// console commands receive it via `getApplication()`, so tests can build an + /// `ApplicationDescription` over it. + pub fn __base_application(&self) -> std::rc::Rc> { + self.0.clone() + } } impl ApplicationHandle { -- cgit v1.3.1