Johannes Meyer
8f153bd5f5
Merge commit from fork
2026-07-02 14:26:15 +02:00
Alexander Rieß
eb4fd0b1c9
Add ConfigForm based on CompatForm ( #5480 )
...
L10n Update / update (push) Waiting to run
CI / PHP (push) Waiting to run
`ConfigForm` uses a `section__key` element-name convention
to map form fields directly to INI file entries. Populates elements from
the config on assembly, writes changed values back on success and
embeds the show configuration widget inline when saving fails.
2026-07-01 15:30:45 +02:00
jrauh01
3b9d663bcf
Replace array() with [] ( #5509 )
...
Replace the outdated `array()` spelling with the more modern `[]`. This
is applied throughout the whole project, also including phpdocs, tests,
view scripts and core modules.
2026-07-01 14:19:02 +02:00
Johannes Meyer
48f6617d34
JavaScript: Enhance dependency optimization
2026-05-04 16:17:20 +02:00
Eric Lippmann
80308bbd75
Migrate Less compilation to ipl\Web\Less
...
Replace the in-tree `Icinga\Less\` visitor layer with its equivalents
from `ipl\Web\Less`, where the same color-variable and light-mode
functionality is maintained as a shared library.
`LessCompiler` is updated to delegate to `WikimediaLessCompiler`,
assembling source via `@import (less)` directives and accepting a
`$minify` flag directly on `render()` rather than through a separate
`compress()` call.
2026-04-27 16:24:51 +02:00
Eric Lippmann
a1c67a3913
Evaluate the light mode rules immediately
...
This is a preparation for using the new Less utils from `ipl\Web` to simplify
the comparison of the old and new stylesheets.
2026-04-27 16:24:51 +02:00
Eric Lippmann
662de28f85
License source files as GPL-3.0-or-later
...
Add SPDX license headers and mark source files as GPL-3.0-or-later to
preserve the option to relicense under later GPL versions.
2026-03-26 17:49:26 +01:00
Eric Lippmann
1c4460c67a
tests: Use latest PHPUnit version
2026-03-19 22:27:45 +01:00
Bastian Lederer
e9f6c7721d
Remove no-op ReflectionProperty::setAccessible() calls
...
`ReflectionProperty::setAccessible()` has had no effect since PHP 8.1, as all
properties are accessible via reflection by default. The method is deprecated
as of PHP 8.5.
2026-03-10 16:40:27 +01:00
Bastian Lederer
ea0ce32bc9
Change implicit nullable type declaration to explicit
...
Since PHP 8.4 implicitly nullable parameter types are deprecated.
Normalize scoped PHPDoc for nullable-parameter updates: use `?Type` instead of
`Type|null`, remove column alignment, and indent continuation lines with 2
spaces.
Co-authored-by: "Eric Lippmann <eric.lippmann@icinga.com>"
2026-03-10 16:40:27 +01:00
Alexander Aleksandrovič Klimov
5333f2deb7
Disable deprecation warnings unless ICINGAWEB_ENVIRONMENT is set to "dev" ( #5359 )
...
in ApplicationBootstrap#setupErrorHandling(). In webrouter.php disable
them unconditionally (until ApplicationBootstrap#setupErrorHandling())
not to duplicate the check. ApplicationBootstrap#setupErrorHandling())
is called pretty early, so we won't miss much.
fixes #5117
* In addition, this provides #5269 and mitigates #5152 in production
where ICINGAWEB_ENVIRONMENT isn't set.
2025-05-05 17:58:28 +02:00
raviks789
1b363360f6
Add tests for detecting browser timezone name
2025-04-28 16:22:59 +02:00
raviks789
2d265babf7
Fix browser timezone information being lost
2025-04-24 10:23:46 +02:00
Johannes Meyer
2b08d88edf
Url: Always compare host and port to identify external urls
2025-03-26 10:23:31 +01:00
Johannes Meyer
01bcf71e37
ArrayDatasource: Restore order by key column
...
Broke with 384d9535a9
2024-11-05 09:16:21 +01:00
alyxbb
5c94bf7bae
removed gendered languaged
2024-01-08 23:55:09 +00:00
raviks789
d2a40e088d
FormTest: Remove mocke Icinga\Web\Session in test testWhetherACsrfCounterMeasureIsBeingAdded()
...
Since a fake session is already being instantiated in `BaseTestCase` there is no need to mock the class `Icinga\Web\Session`.
2023-08-28 16:56:51 +02:00
raviks789
33b6c01fe2
Create fake session to write csp nonces to it
...
`Csp::createnonces()` writes to a window aware session and hence a fake base session
is created in `BaseTestCase::setUp()` method
2023-08-28 16:56:51 +02:00
raviks789
9887a2d622
ConfigTest: Define property $oldConfigDir
...
Use of dynamic property is deprecated since PHP 8.2
2023-08-23 10:53:15 +02:00
Johannes Meyer
f61d278110
test: Support ICINGAWEB_CONFIGDIR during bootstrapping
2023-08-09 13:48:45 +02:00
Johannes Meyer
597cb5c94d
tests: Use a real app for bootstrapping
...
Makes the tests less isolated, but streamlines
the autoloading and other stuff in a way that's
more maintainable than before.
2023-07-05 09:24:49 +02:00
Johannes Meyer
776e0803fa
tests: The app is soon not mocked anymore, so don't use it as such
2023-07-04 16:26:36 +02:00
Johannes Meyer
e572652f4c
ConfigTest: Always load test config from disk
2023-07-04 16:25:11 +02:00
Johannes Meyer
d0b2ed177c
tests: Drop DateFormatTestBroken as it is .. broken
2023-07-04 16:24:37 +02:00
Johannes Meyer
c9f3f0444d
tests: Require view helpers at runtime
2023-07-04 16:24:19 +02:00
Johannes Meyer
0803a1bbdc
test: Support multiple paths in ICINGAWEB_MODULES_DIR
2023-01-18 12:07:11 +01:00
Johannes Meyer
93bac9443d
test: Expect internal test dependencys in php/Lib
...
Loading internal test dependencies did previously only work
if placed directly inside `php`. No module does this at this
time.
2023-01-18 12:03:54 +01:00
Johannes Meyer
23c4ae2469
test: Don't require Mockery the legacy way
...
Installing locally as composer library is now the only way.
2023-01-18 12:02:38 +01:00
Johannes Meyer
b89da2f865
Visitor: Force light mode when printing pages
2022-12-07 11:57:48 +01:00
Eric Lippmann
e45c53ac3c
Test nested LESS variables in minin calls
2022-06-30 12:15:01 +02:00
Yonas Habteab
1ec6913a04
Tests: Add less parser nested variables test cases
2022-06-30 12:15:01 +02:00
Sukhwinder Dhillon
8f0ac0492d
Replace deprecated method DbConnection::getConnection() with DbConnection::getDbAdapter()
2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon
d8895669b3
Remove class IniStoreTest
2022-05-27 13:55:48 +02:00
Sukhwinder Dhillon
213c60334a
Rename class DbStoreTest to PreferencesStoreTest
2022-05-27 13:55:48 +02:00
Johannes Meyer
42815f02e6
Drop class Icinga\File\Storage\LocalFileStorageIterator
2022-03-24 12:27:20 +01:00
Eric Lippmann
0ce968bfda
Deny light-mode definitions in selectors
2022-02-09 21:35:12 +01:00
Johannes Meyer
91c0ff9d05
LessParserTest: Test light mode collection
2022-02-09 21:35:12 +01:00
Johannes Meyer
38cc26eca5
tests: Introduce LessParserTest
2022-02-09 21:20:33 +01:00
Johannes Meyer
509d642982
tests: Introduce TemporaryLocalFileStorageTest
...
refs #4630
2022-01-11 12:48:34 +01:00
Johannes Meyer
6633bde9e9
tests: Load Mockery as late as possible
2021-11-02 09:26:00 +01:00
Johannes Meyer
06d03dc21f
tests: Load external libraries
2021-11-02 09:26:00 +01:00
Gianluca Piccolo
1e7f700102
Make configuration of custom user backends possible
...
refs Icinga/icingaweb2#2840
2021-06-18 10:28:35 +02:00
Johannes Meyer
84c459c519
test: Remove testcase Bug6432Test
2021-05-28 14:03:36 +02:00
Johannes Meyer
0cbae3195e
test: Remove testcase TranslatorTest
2021-05-28 14:03:36 +02:00
Johannes Meyer
384d9535a9
ArrayDatasource: Sort result first and then apply limit+offset
2021-04-12 15:42:20 +02:00
Johannes Meyer
e671324ddb
tests: Don't use deprecated assertion assertRegExp()
2021-04-09 12:38:43 +02:00
Johannes Meyer
f27e872d90
tests: Don't make use of deprecated phpunit features
2021-04-09 12:38:43 +02:00
Johannes Meyer
bc1c967dec
BaseTestCase: Inherit from Mockery\Adapter\Phpunit\MockeryTestCase
2021-04-09 12:38:43 +02:00
Johannes Meyer
cb87190138
tests: Add :void return type declarations
2021-04-09 12:38:43 +02:00
Johannes Meyer
87d741265e
Auth: Add support for denied permissions
2021-02-18 11:11:39 +01:00