Alexander Fuhr
ab71b1cf1c
Update TranslatorTest: adjust systemwide locales order
2014-09-05 10:53:56 +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
Thomas Gelf
97cfeaa3df
SessionNamespaceTest: expect the correct exception
2014-09-04 18:39:02 +02:00
Thomas Gelf
3d170f90a5
TranslatorTest: expect the correct exception
2014-09-04 18:39:02 +02:00
Alexander Fuhr
e4d1143870
Add SearchDashboardTest
2014-09-04 18:31:08 +02:00
Thomas Gelf
4513ab2aed
GraphChartTest: match current implementation
...
We have more nodes right now as of a graphical hack (white bg)
2014-09-04 17:57:02 +02:00
Thomas Gelf
5a29315ee8
Web\UrlTest: make tests fit current implementation
...
* temporarily disable [] tests
* getAbsoluteUrl uses & and not & by default
* __toString uses & and does not match getAbsoluteUrl by default
* addParams MUST hide existing ones, getValues still ships them
fixes #6604
2014-09-04 17:35:55 +02:00
Alexander Fuhr
1d81211427
Move DashboardTest in correct directory
...
resf #6986
2014-09-03 15:13:16 +02:00
Thomas Gelf
65fb246b7e
FilterTest: fix complex filter example
...
The filter in the test was not a valid filter.
fixes #7069
2014-09-03 15:03:24 +02:00
Alexander Fuhr
acbd2bd7c0
Merge branch 'master' into feature/dashboard-component-disabled-property-6986
2014-09-03 14:40:30 +02:00
Alexander Fuhr
7cfc051228
Add tests for Dashboard and fix doc blocks
...
refs #6986
2014-09-03 14:36:04 +02:00
Johannes Meyer
8e5deb8029
Fix TranslatorTest not expecting the default locale as being "available"
...
refs #7063
2014-09-03 10:00:04 +02:00
Marius Hein
ee6145a173
Ldap/Query: Remove __toString()
...
This is needed because of exception handling. Exceptions can now bubble
up for default handling. Method render() was renamed to create() because
the method create a query. Adjust the test for method create().
refs #5536
2014-09-02 10:17:01 +02:00
Alexander Klimov
7ff51caed0
Remove leading backslashes from the targets of use statements
...
- use \Exception;
+ use Exception;
2014-08-27 15:51:49 +02:00
Eric Lippmann
1dea19504f
Revert "Remove leading backslashes from the targets of use statements"
...
This reverts commit 87a5967501
.
At least 'modules/doc/run.php' issues a warning about "The use statement with non-compound name 'Zend_Controller_Router_Route' has no effect"
2014-08-27 12:24:11 +02:00
Alexander Klimov
87a5967501
Remove leading backslashes from the targets of use statements
...
- use \Exception;
+ use Exception;
2014-08-27 11:16:44 +02:00
Marius Hein
5abf41edef
Hook/ConfigurationTab: Remove deprecated implementation
...
ConfigurationTab hook is not used anywhere. Test is
removed also.
2014-08-27 10:29:04 +02:00
Matthias Jentsch
1aa95b054c
Add unit tests for nested-key handling in the PreservingIniWriter
...
fixes #6381
2014-08-26 18:31:19 +02:00
Thomas Gelf
cd825a4e6b
tests/ScrollingStyle: adjust, pagination shortened
...
Pagination has been "shortened" some time ago to waste less space,
tests now fit the current implementation.
fixes #6594
fixes #6595
2014-08-19 12:45:42 +02:00
Thomas Gelf
3f65f3447d
Web\UrlTest: test should use %20 instead of +
...
We MUST use rawurlencode everywhere to avoid potential conflicts with
URLs created on JS side.
refs #6604
2014-08-19 12:39:53 +02:00
Johannes Meyer
3105c2059e
Remove license headers from all files
...
refs #6309
2014-07-15 13:43:52 +02:00
Matthias Jentsch
fa61b601d4
Test whether section comments are moved correctly
2014-07-04 11:35:00 +02:00
Matthias Jentsch
e78f01591d
Fix PreservingIniWriterTest section test case
...
The test case now tests whether the section order of the ini file is updated correctly and
not whether the section order is preserved
fixes #6625
2014-07-03 17:26:55 +02:00
Johannes Meyer
8eac449d56
Adjust the test for Icinga\Web\MenuItem as its test subject has changed
...
refs #6153
2014-07-03 15:14:47 +02:00
Eric Lippmann
8727c9b91d
Revert "tests: Fix path to `extcmd_test'"
...
This reverts commit 4054bcf101
.
The changed path to `extcmd_test' is actually invalid because `extcmd_test' is located beneath `<icingaweb>/modules/test/bin'.
I erroneously assumed the latter as invalid because the compiled `extcmd_test' was missing.
2014-07-02 12:18:15 +02:00
Eric Lippmann
4054bcf101
tests: Fix path to `extcmd_test'
...
The path to `extcmd_test' is now `<icingaweb>/test/php/extcmd_test' instead of being relative to the current directory.
refs #6542
2014-07-02 11:09:04 +02:00
Eric Lippmann
545a153490
Merge branch 'master' into bugfix/test-fix-6542
2014-07-02 10:57:08 +02:00
Johannes Meyer
7eb0f3c472
Remove @codingStandardsIgnoreStart/-Stop annotations
...
refs #6091
2014-06-30 13:59:58 +02:00
Alexander Klimov
5b79d6e4a7
Do not expect a particular exception message
...
refs #6542
2014-06-30 13:33:17 +02:00
Johannes Meyer
54f9ecb62f
Add extcmd_test binary to gitignore and skip tests when its not available
2014-06-30 08:56:48 +02:00
Alexander Klimov
572c7858c8
Remove test Tests\Icinga\Web\Paginator\ScrollingStyle\SlidingwithborderTest::testGetPages1 because it tests a non-present feature
...
refs #6542
2014-06-27 14:30:58 +02:00
Alexander Klimov
b2ffa2aa89
Remove Test\Icinga\Web\Paginator\Adapter\QueryAdapterTest because the test tests a non-present feature
...
refs #6542
2014-06-27 14:30:57 +02:00
Alexander Klimov
23baa0dc83
Fix test Icinga/File/CsvTest.php because the method being tested has been changed
...
refs #6542
2014-06-27 14:30:57 +02:00
Johannes Meyer
3b191d36c4
Let Icinga\Util\File extend from SplFileObject
...
We should extend SplFileObject as it provides already some of the
functionality Icinga\Util\File had and adds even more on top of that.
2014-06-26 15:57:14 +02:00
Johannes Meyer
461b050718
Add locale negotiation to Icinga\Util\Translator
...
Translator::getPreferredLocaleCode($header) can now be used with the
HTTP "Accept-Language" header to return the best matching locale using
the user's preferations reported by the browser and our available locale
stack. Additionally Translator::getLocale and Translator::getLanguage were
replaced by Translator::splitLocaleCode to provide a more flexible
implemenation in order to identify specific parts of a particular locale or
the current one.
refs #6074
2014-06-25 12:15:41 +02:00
Thomas Gelf
40a3c0d19b
FilterTest: add notes for future tests
...
Also removed forgotten sample code
2014-06-25 11:14:32 +02:00
Thomas Gelf
b3cdeee35d
monitoring/timeline: should benefit from new filter
...
Different changes have been applied:
* Allow integer unix timestamps as parameters for timestamp columns
* Remove alias-rewriting from Url class
* Remove all traces of raw_timestamp
* Use new filters
2014-06-21 03:09:40 +02:00
Thomas Gelf
e3e6826d9d
Icinga\Filter: remove
2014-06-17 13:26:57 +00:00
Thomas Gelf
db3accc704
Data\Db: rename Query and Connection to Db...
...
Class names in namespaces should not be chosen as once we didn't have
such. The fact that we already did "use Db\Connection as DbConnection"
is the best hint that naming was wrong.
So this patch renames Db\Connection to Db\DbConnection and does the
same with DbQuery. DbQuery has been adjusted to fit our new SimpleQuery
and to handle the new Filter implementation.
2014-06-06 06:43:13 +00:00
Thomas Gelf
f438cb30e1
Data\Filter: initial commit basic implementation
...
Basic operators are there, still missing: subclassed "where" to distinct
comparison operators like greater/less than on a class level.
refs #6418
2014-06-06 06:04:24 +00:00
Thomas Gelf
6b0a212094
tests/Data: implement basic data filtering tests
...
First test examples, more to come
2014-06-06 05:42:02 +00:00
Thomas Gelf
820b6b7a8d
Data\BaseQuery: rename to Data\SimpleQuery
...
BaseQuery should no longer be abstract but be usable as is as soon as
we stripped ResultSet-specific tasks. As "Base" suggests something that
must be extended, the name no longer fits. So this is SimpleQuery right
now.
2014-05-07 11:55:35 +00:00
Johannes Meyer
4cf3044a53
Rename Icinga\Logger\Writer\StreamWriter to FileWriter
...
refs #6038
2014-04-30 11:59:22 +02:00
Johannes Meyer
1df56cbfb9
Fix errors in tests
...
refs #6011
2014-04-28 14:06:40 +02:00
Johannes Meyer
07da92ee42
Rewrite test for Icinga\Web\Url and fix some bugs
...
refs #6011
2014-04-28 14:06:40 +02:00
Johannes Meyer
c5c375e72d
Add test for Icinga\Web\MenuItem
...
refs #6011
2014-04-28 14:06:40 +02:00
Johannes Meyer
290fe9eeb5
Rewrite test for Icinga\Web\Hook
...
refs #6011
2014-04-28 14:06:40 +02:00
Johannes Meyer
2b15d35dec
Rewrite test for Icinga\Web\Form
...
refs #6011
2014-04-28 14:06:40 +02:00