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 384d9535a990c23fef3abc73657cb15931c2eba5
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
Johannes Meyer
b2f7c3788d
test: Roles have permissions, not users
2021-02-18 11:11:39 +01:00
Johannes Meyer
9e1d14666c
test: Load composer autoloader if available
2020-01-22 13:09:01 +01:00
Johannes Meyer
766d73cb3f
IniParserTest: Add case for php bug 76965
...
refs #3733
2019-04-17 09:59:54 +02:00
Johannes Meyer
f6f106faf2
tests: Update ini tests
2019-03-04 12:16:55 +01:00
Johannes Meyer
ed7ecb32a5
IniParser: Properly unescape special characters in section names and option values
...
refs #3648
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2019-02-05 11:30:55 +01:00
Markus Frosch
4081a85d90
Introduce Icinga\Util\Environment to manage limits
...
And replace the code in Icinga\File\Pdf with the new helper.
2018-12-05 15:42:48 +01:00
Markus Frosch
99a31468c9
test: Cleanup vendor symlinks
2018-12-05 14:57:38 +01:00
Eric Lippmann
121bd545d1
Merge pull request #3530 from Icinga/feature/enforce-a-named-identity-for-audit-logs
...
AuditHook: Enforce a named identity and allow to pass a explicit time
2018-07-18 15:27:45 +02:00
Johannes Meyer
f28f7150fc
AuditHook: Enforce a named identity and allow to pass a explicit time
2018-07-18 14:45:00 +02:00
Eric Lippmann
1ae2507f0e
Merge pull request #3495 from Icinga/bugfix/tests-don-t-respect-module-paths-3494
...
icingacli test php unit: include the tests of all installed modules
2018-07-18 13:45:18 +02:00
Alexander A. Klimov
0c364f7866
icingacli test php unit: include the classes of all installed modules
...
refs #3494
2018-07-10 15:24:19 +02:00
Eric Lippmann
faaff42096
Revert "Introduce PasswordHelper for safer passwords"
...
This reverts commit f57277aa96ce91a0e6761b04937447b9a2a9a679.
Since we're dropping PHP support for versions lower than 5.6 this class is no longer necessary.
2018-07-03 13:08:06 +02:00
Eric Lippmann
1a841170ff
Merge pull request #3419 from Icinga/feature/audit-module-2584
...
Feature/audit module 2584
2018-06-19 05:13:42 -04:00