Commit Graph

1258 Commits

Author SHA1 Message Date
Michal Čihař
de7181653f Correctly handle paths to exact files when setting cookie
We need to set path to folder not a given file.

Fixes #11916

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-08 09:54:57 +01:00
Michal Čihař
a28cc6d2de Ensure we always restore original instance even on failure
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 20:41:00 +01:00
Michal Čihař
2148e7cad8 Implement test for Cookie auth without runkit
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 20:21:40 +01:00
Michal Čihař
be8b4ccd76 Add mising separator
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 19:57:42 +01:00
Michal Čihař
e3843ab1a9 Test with SID if set
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 19:56:26 +01:00
Michal Čihař
c2b41b829a Wrap header() and headers_sent() in response
This allows us to test the code without using runkit. Currenly only
AuthenticationHttp is migrated to new code, but others will follow.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 19:49:05 +01:00
Michal Čihař
431450a237 Make test run even without runkit
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 19:49:05 +01:00
Michal Čihař
892d09cf74 Add more tests for getting cookie path
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:50:00 +01:00
Michal Čihař
ae1ccf3e6a Remove PmaAbsoluteUri configuration directive
Fixes #11412

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:41:29 +01:00
Michal Čihař
43ca165e9f Remove unused method checkCookiePath
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:34:32 +01:00
Michal Čihař
a569eeca93 Do not use PmaAbsoluteUri for getCookiePath
Issue #11412

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:32:32 +01:00
Michal Čihař
060aaf9c99 Remove detectHttps method
The isHttps method does the same and simpler.

Issue #11412

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:25:58 +01:00
Michal Čihař
a913f99817 Add detection based on REQUEST_URI as well
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:25:13 +01:00
Michal Čihař
49eb80d887 Rewrite tests for https detection
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:19:04 +01:00
Michal Čihař
16a30ae87d Fix documented return values
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:15:40 +01:00
Michal Čihař
6da017fcfc Load vendor_config just once at testsuite startup
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 14:21:57 +01:00
Madhura Jayaratne
4cb0c4cdf0 Avoid additional query for profiling support
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2016-02-01 23:19:49 +11:00
Madhura Jayaratne
3ad437b554 Update tests
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2016-02-01 23:04:01 +11:00
Michal Čihař
e95bb0e361 Remove own code for generating numeric PHP version
Since PHP 5.2.7 there is PHP_VERSION_ID for it.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-28 14:53:58 +01:00
Michal Čihař
b27e80df5a These test need runkit_internal_override enabled
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-25 09:42:04 +01:00
Michal Čihař
e4dfb159c4 Do not use global constant with class
As this doesn't play well together. This fixes the PDF schema export.

Fixes #11849

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-22 15:24:48 +01:00
Atul Pratap Singh
e1a8fc758a Change some function names
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
2016-01-18 11:25:41 +05:30
Atul Pratap Singh
8bdcd7d3c0 Fix template test case
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
2016-01-16 17:00:32 +05:30
Atul Pratap Singh
b725916252 Add tests for template functions: setData, addData, addFunction
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
2016-01-15 09:38:48 +05:30
Michal Čihař
ccd6163563 Add test for getting MySQL locale
Issue #11789

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-13 08:51:56 +01:00
Michal Čihař
60b7bb1733 Add method for getting current language
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-13 08:30:23 +01:00
Michal Čihař
b450e58dbb Remove require of libraries included in test bootstrap
There is no need to specify them in every test when we already do it
globally.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-12 16:43:16 +01:00
Michal Čihař
908c44c027 Remove no longer used variables
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-12 14:51:08 +01:00
Michal Čihař
19f9e830eb Remove no longer needed code for language selection
Issue #11847

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-12 14:51:08 +01:00
Michal Čihař
fd045a94e7 Initial implementation of LanguageManager
The LanguageManager is responsible for choosing correct language and
Language class wraps invididual locales, allows matching and their
activation.

Issue #11847

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-12 14:51:07 +01:00
Marc Delisle
71bf8768a0 Merge branch 'QA_4_5' 2016-01-06 12:14:51 -05:00
Marc Delisle
eae51ef7c7 Fixes #11780 FROM clause not generated after loading search bookmark
Signed-off-by: Marc Delisle <marc@infomarc.info>
2016-01-06 12:14:13 -05:00
Michal Čihař
6e958185ec Fix docstring ordering
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-05 16:36:15 +01:00
Michal Čihař
ce1df2746b Coding style improvements
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-05 16:35:23 +01:00
Michal Čihař
65aecc8e9e Test theme rendering
Tested for both built in themes.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-05 15:47:58 +01:00
Michal Čihař
cd213039e8 Allow to specify name and text directly in OptionsPropertyItem contructor
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-05 15:04:02 +01:00
Michal Čihař
7f9333c3e1 Add second test for shape file import
This one contains multipolygons to test more complex things.

The data is based on OpenStreetMap, licensed under ODbL 1.0.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-05 12:18:05 +01:00
Michal Čihař
65555e51d5 Ensure test can be executed separately
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-05 12:18:05 +01:00
Michal Čihař
a37273c5ba Initialize array variables
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-05 11:07:51 +01:00
Michal Čihař
e1c9dec998 Merge commit '912f96114dc803404e2854ebb5796757a4eeedb6' 2016-01-05 08:21:32 +01:00
Michal Čihař
c197c3fba5 Fix handling of databases with dot in a name
We do not need to concatenate and parse the items, the cache backend
accepts array directly.

Fixes #11798

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-04 17:06:58 +01:00
Michal Čihař
55b317c699 Remove /*overload*/ prefix from mb_* calls
I believe this was temporary flagging to see which code is migrated and
can be safely removed now.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-04 16:35:28 +01:00
Marc Delisle
911f8274c7 Clarify class and variable name
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-12-31 08:09:47 -05:00
Marc Delisle
f380964afe Remove shaky part of a test
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-12-28 09:50:36 -05:00
Deven Bansod
56e3c123a0 Merge branch 'QA_4_5'
Conflicts:
	libraries/mysql_charsets.lib.php
	po/vi.po
	test/classes/TableTest.php
2015-12-27 11:04:56 +05:30
Deven Bansod
28a5a2693b Fix error in commit : a4f02ca
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2015-12-26 13:17:16 +05:30
Michal Čihař
b869e3b937 Remove tests for removed class
Signed-off-by: Michal Čihař <michal@cihar.com>
2015-12-21 12:38:50 +01:00
Michal Čihař
cc07b737dc Remove unused PMA_String class
The class is no longer used:

- the ctype part is not needed by new SQL parser
- the utf-8 manipulation was replaced by direct usage of mbstring

Signed-off-by: Michal Čihař <michal@cihar.com>
2015-12-21 12:09:06 +01:00
Deven Bansod
52c637b383 Merge branch 'QA_4_5'
Conflicts:
	libraries/mysql_charsets.lib.php
	po/de.po
	po/el.po
	po/et.po
	po/nl.po
	po/tr.po
	test/classes/TableTest.php
	test/libraries/PMA_mysql_charsets_test.php
2015-12-18 20:18:10 +05:30
Deven Bansod
a4f02ca28f Fix #11757 : Export and preview show different SQL for character set
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2015-12-18 19:03:24 +05:30