From 2703773fe1483612e21483819021bb63b7e29dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tollk=C3=BChn?= Date: Thu, 22 Oct 2026 17:33:58 +0200 Subject: [PATCH] - fix: add constructor - test --- lib/AppInfo/Application.php | 4 ++++ tests/Unit/AppInfo/ApplicationTest.php | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 tests/Unit/AppInfo/ApplicationTest.php diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 63766c7..e48c4ea 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -9,4 +9,8 @@ use OCP\AppFramework\App; class Application extends App { public const APP_ID = 'atocal'; + + public function __construct(array $urlParams = []) { + parent::__construct(self::APP_ID, $urlParams); + } } \ No newline at end of file diff --git a/tests/Unit/AppInfo/ApplicationTest.php b/tests/Unit/AppInfo/ApplicationTest.php new file mode 100644 index 0000000..bf1c72f --- /dev/null +++ b/tests/Unit/AppInfo/ApplicationTest.php @@ -0,0 +1,23 @@ +assertSame(0, $constructor->getNumberOfRequiredParameters()); + } +}