Johannes Meyer
f27e872d90
tests: Don't make use of deprecated phpunit features
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
b2f7c3788d
test: Roles have permissions, not users
2021-02-18 11:11:39 +01:00
Eric Lippmann
4bea67e756
Merge pull request #3315 from Icinga/bugfix/php-7-2-support-3185
...
Don't call session_start() after ini_set()
2018-05-07 05:44:52 -04:00
Johannes Meyer
1b15048636
Drop obsolete Icinga\Web\Menu classes
...
refs #2338
2018-04-27 14:28:20 +02:00
Alexander A. Klimov
dadd2c80f6
Don't call session_start() after ini_set()
...
refs #3185
2018-01-24 17:38:20 +01:00
Eric Lippmann
f0ad3d5188
Add more test cases to the transformEmptyValuesToNull() test
...
refs #2751
2017-11-09 12:06:15 +01:00
Noah Hilverling
bd6e65374d
Add test for method transformEmptyValuesToNull
...
refs #2751
2017-11-09 11:57:59 +01:00
Johannes Meyer
73e24302c0
Make running unittests with the icingacli work in package installations
...
fixes #2787
2017-03-09 11:36:35 +01:00
Johannes Meyer
181e2ef05c
Swag: Fix swag (aka a whole bunch of code style issues..)
2017-01-27 14:48:59 +01:00
Johannes Meyer
59cadde485
UrlTest: Fix skipped test
2017-01-23 14:59:58 +01:00
Noah Hilverling
a84e0c4d84
UrlTest: Add additional test cases
...
refs #12133
2016-10-19 13:12:55 +02:00
Noah Hilverling
011bce0909
UrlTest: Use getBasePath instead of getBaseUrl
...
refs #12133
2016-10-18 14:12:38 +02:00
Jennifer Mourek
7df6e6cb63
UrlTest: Fix method name and PSR issue
...
refs #12133
2016-10-17 14:57:30 +02:00
Jennifer Mourek
d0b93b064c
UrlTest: Test whether getAbsoluteUrl returns the given username and password
...
refs #12133
2016-10-17 14:46:58 +02:00
Alexander A. Klimov
474803fee4
Change all license headers to only reflect a file's year of creation
...
refs #11000
2016-02-08 15:41:00 +01:00
Eric Lippmann
2e3082a75a
Skip Hook tests
2015-11-16 13:18:03 +01:00
Johannes Meyer
85e7e7920a
Url: Fix detection of the current base url when stripping it from a given path
2015-10-01 10:42:28 +02:00
Johannes Meyer
7321d67b4f
Url: Consider urls with a leading slash as absolute..
...
..and make it possible to have a url without a base.
refs #5600
2015-09-22 14:14:41 +02:00
Johannes Meyer
d1fa5e8fce
DashboardTest: Drop test testLoadPaneItemsProvidedByEnabledModules
...
refs #5600
2015-09-16 14:44:31 +02:00
Eric Lippmann
bb80347a36
Fix failing form test
...
Form::isSubmitted() now also checks the request method.
2015-09-07 13:56:03 +02:00
Eric Lippmann
7cfc78558d
Merge branch 'master' into feature/secure-modules-9644
...
Conflicts:
library/Icinga/Exception/IcingaException.php
2015-07-28 13:42:02 +02:00
Eric Lippmann
75147d6c62
Provide a test user in the SearchDashboardTest
...
refs #9644
2015-07-23 13:01:05 +02:00
Eric Lippmann
b38b3b35b7
Provide a test user in the DashboardTest
...
refs #9644
2015-07-23 13:00:23 +02:00
Eric Lippmann
910dee199f
Fix form test
2015-07-22 14:21:53 +02:00
Johannes Meyer
b4214dcf32
FormTest: getRedirectUrl now returns an instance of Icinga\Web\Url
2015-07-21 16:49:59 +02:00
Eric Lippmann
5b3957baca
Drop the DateTimeRendererTest
...
refs #6778
2015-05-19 12:46:33 +02:00
Eric Lippmann
6bae2e0a53
Note that our license is GPL v2 or any later version in our license header instead of pointing to the license's URL
2015-02-04 10:52:27 +01:00
Eric Lippmann
5b4fab0750
Add license header
...
This time without syntax errors hopefully :)
2015-02-03 16:27:59 +01:00
Eric Lippmann
5fa2e3cfdc
Revert "Add license header"
...
This reverts commit 338d067aba
.
2015-02-03 16:16:26 +01:00
Eric Lippmann
338d067aba
Add license header
...
fixes #7788
2015-02-03 15:51:04 +01:00
Marius Hein
bfa7320d85
Dashboard: Fix tests
...
refs #7751
2014-11-20 12:48:05 +01:00
Marius Hein
8c3dbb2b45
Dashbosrd: Fix tests
...
refs #4537
2014-11-18 17:26:28 +01:00
Johannes Meyer
7621f6642d
Adjust usages of Icinga\Application\Config
...
refs #7147
2014-11-18 13:11:52 +01:00
Johannes Meyer
ddf2ef5cc9
Remove $request parameter from Form::onSuccess and Form::onRequest
...
fixes #7552
2014-11-14 14:59:29 +01:00
Johannes Meyer
9d292269b1
Merge branch 'master' into feature/setup-wizard-7163
...
Conflicts:
application/forms/Config/Resource/LdapResourceForm.php
test/php/application/forms/Config/Authentication/LdapBackendFormTest.php
2014-11-11 09:44:11 +01:00
Johannes Meyer
7b99b74ae1
Prefer Icinga\Application\Config instead of Zend_Config
...
refs #7147
2014-11-07 13:53:03 +01:00
Johannes Meyer
635b802a2b
Add tests for hasChanged, set/getByRef and fix setByRef
2014-09-24 10:46:35 +02:00
Johannes Meyer
6f988cb94c
Remove method write() from Icinga\Web\Session\SessionNamespace
2014-09-24 10:46:35 +02:00
Eric Lippmann
cde3ec6bc8
Merge branch 'master' into bugfix/commands-6593
...
Conflicts:
modules/monitoring/application/controllers/TimelineController.php
2014-09-23 22:54:17 -07:00
Alexander Fuhr
e784aa34b6
Implement DateTimeRenderer and fix history time format
...
refs #6980
2014-09-23 11:36:09 +02:00
Eric Lippmann
f640874865
monitoring: Fix DateTimePicker test
2014-09-17 12:40:41 +02:00
Eric Lippmann
8bf66425d1
Merge branch 'master' into bugfix/commands-6593
2014-09-15 09:27:56 +02:00
Thomas Gelf
3a5415f7c8
test/Web/Hook: refactor without mocks
...
Mocks made no sense here. Also introduced a "new" way of naming test
functions. Output now looks as follows:
s\Icinga\Web\Hook
[x] Knows which hooks are registered
[x] Correctly handles multiple instances
[x] Returns null for invalid hooks
[x] Returns null for failing hook
[x] Checks whether created instances inherit base classes
[x] Throws errors for instances not inheriting base classes
[x] Creates identical instances only once
[x] Returns an empty array with no registered hook
2014-09-12 09:07:27 +02:00
Johannes Meyer
cee3c32fa5
Fix dashboard tests utilizing BaseTestCase::setupIcingaMock()
2014-09-09 10:21:37 +02:00
Johannes Meyer
a5c027b77c
Fix UrlTest utilizing BaseTestCase::setupIcingaMock()
2014-09-09 10:21:09 +02:00
Johannes Meyer
6525d6933a
Add test for Icinga\Web\Form
...
refs #5525
2014-09-09 09:40:49 +02:00
Alexander Fuhr
ba623d0544
SearchDashboard: adjust SearchDashboardTest and rename searchQuery to searchString
2014-09-04 22:54:41 +02:00
Thomas Gelf
0f7f2f2d8b
SearchDashboard: rename ::load() to ::search()
...
Function signature didn't match parent factory function
fixes #7081
2014-09-04 19:35:31 +02:00
Thomas Gelf
dd943c3aa7
Web\UrlTest: test the new matches() function
...
refs #6992
2014-09-04 18:59:22 +02:00