Maurício Meneghini Fauth
35eb2da38a
Remove @ operator from function_exists
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2018-03-01 22:36:35 -03:00
Gabriel Caruso
21dacea6d1
Use assertNotSame
...
Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
2018-01-16 10:32:26 -02:00
Michal Čihař
3b6a994dcd
Move collation connection setting to user preferences
...
It is now handled same way as other user settings.
Issue #11688
Issue #13466
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-29 14:16:31 +01:00
Michal Čihař
f9c73c7b10
Remove special casing for font size
...
It is now stored in configuration in same way as any other setting.
Issue #13466
Issue #11688
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-28 15:16:01 +01:00
Michal Čihař
ac856175a6
Move server selection to Config class
...
- move server selection from common.inc.php to Config class
- add tests covering most usual cases
Issue #11731
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-03 19:14:38 +02:00
Maurício Meneghini Fauth
c00245fa0a
Move PMATestCase to PhpMyAdmin\Tests\PmaTestCase
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-30 16:34:53 -03:00
Maurício Meneghini Fauth
df30240015
Add namespace to test classes
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-20 13:03:50 -03:00
Maurício Meneghini Fauth
e2c83b954b
Refactor relation functions to static methods
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-08-22 20:51:27 -03:00
Michal Čihař
51fb18612a
Move Theme object out of session
...
Honestly I don't see good reason for storing Theme in session as loading
it from the session will take about same time as loading it from the
disk.
Additionally it seems that current code really didn't really use the
object stored in session, it was constructed with every request anyway
(by ThemeManager::initializeTheme).
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-07-17 14:18:35 +02:00
Maurício Meneghini Fauth
ca910e8de8
Move classes to PhpMyAdmin namespace
...
- Move Table to PhpMyAdmin namespace
- Move Template to PhpMyAdmin namespace
- Move ThemeManager to PhpMyAdmin namespace
- Move Theme to PhpMyAdmin namespace
- Move Tracker to PhpMyAdmin namespace
- Move Transformations to PhpMyAdmin namespace
- Move TypesMySQL to PhpMyAdmin namespace
- Move Types to PhpMyAdmin namespace
- Move Util to PhpMyAdmin namespace
- Move VersionInformation to PhpMyAdmin namespace
- Move Url to PhpMyAdmin namespace
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-07-08 10:54:21 -03:00
Maurício Meneghini Fauth
13c0f7bc3c
Move classes to PhpMyAdmin namespace
...
- Move Advisor to PhpMyAdmin namespace
- Move Bookmark to PhpMyAdmin namespace
- Move Charsets to PhpMyAdmin namespace
- Move Config class to PhpMyAdmin namespace
- Move Console class to PhpMyAdmin namespace
- Move Core to PhpMyAdmin namespace
- Move DatabaseInterface to PhpMyAdmin namespace
- Move DbList to PhpMyAdmin namespace
- Move DbQbe to PhpMyAdmin namespace
- Move DbSearch to PhpMyAdmin namespace
- Move DisplayResults to PhpMyAdmin namespace
- Move Encoding to PhpMyAdmin namespace
- Move Error to PhpMyAdmin namespace
- Move ErrorHandler to PhpMyAdmin namespace
- Move File to PhpMyAdmin namespace
- Move Font to PhpMyAdmin namespace
- Move Footer to PhpMyAdmin namespace
- Move Header to PhpMyAdmin namespace
- Move Index to PhpMyAdmin namespace
- Move IndexColumn to PhpMyAdmin namespace
- Move LanguageManager to PhpMyAdmin namespace
- Move Language to PhpMyAdmin namespace
- Move Linter to PhpMyAdmin namespace
- Move ListAbstract to PhpMyAdmin namespace
- Move ListDatabase to PhpMyAdmin namespace
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-06-28 21:17:18 -03:00
Michal Čihař
941e861aba
Define major version
...
This will be later used as compatiblity check for themes.
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-15 09:47:15 +02:00
Michal Čihař
bb26e2e0d9
Remove deprecated variables
...
These should not be used for few years.
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-15 09:47:15 +02:00
Maurício Meneghini Fauth
5366c507a5
Fix coding standard errors using vendor/bin/phpcbf
...
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-03-21 23:16:32 -03:00
Michal Čihař
234f93efff
Various coding style and visibility fixes for #12852
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-01-08 10:51:25 +01:00
Michal Čihař
f86aca5b80
Merge branch 'QA_4_6'
2016-12-06 10:48:16 +01:00
Michal Čihař
e182ba9907
Revert to auto for further tests
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-06 10:31:50 +01:00
Michal Čihař
15bac5f512
Flag tests needing network access
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-06 10:31:50 +01:00
Michal Čihař
1a23eccd2b
Remove code for MSIE 6
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-10-04 12:01:27 +02:00
Michal Čihař
d52e2cfbbf
Move Util::httpRequest tests to UtilTest.php
...
Issue #12465
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-08-29 11:22:25 +02:00
Volkan Ulukut
be6944d0eb
Fixes #12380 Refactored http requests into one function "httpRequest" in Util.php
...
Signed-off-by: Volkan Ulukut <arthan@gmail.com>
2016-08-29 00:20:38 +03:00
Michal Čihař
23e01d306a
Merge branch 'QA_4_6'
2016-08-17 15:38:22 +02:00
Michal Čihař
7898060916
Ensure PmaAbsoluteUri ends with /
...
This was probably most frequest user error we want to fix.
Issue #12374
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-08-17 15:37:20 +02:00
Michal Čihař
01b9db6b1c
Rename getCookiePath() to getRootPath()
...
It is not used only for cookies, so generic name makes more sense.
Issue #12374
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-08-17 15:35:15 +02:00
Michal Čihař
6d8e1d7935
Merge branch 'QA_4_6'
2016-07-28 09:38:08 +02:00
Michal Čihař
4072c1d29a
Use example.com for sample test urls
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-07-28 09:12:01 +02:00
Michal Čihař
ab29ec9947
Merge branch 'QA_4_6'
2016-05-27 11:12:58 +02:00
Michal Čihař
d78e173b34
Do not use dirname for calculating cookie path
...
It is wrong for this purpose as on Windows this uses \ for both
separating parts and generating result. This fixed calculation of cookie
path on Windows.
Fixes #12249
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-27 11:11:56 +02:00
Michal Čihař
c71e842349
Merge branch 'QA_4_6'
2016-05-26 18:06:14 +02:00
Michal Čihař
e72c1d4da9
Add more tests for getCookiePath (issue #12249 )
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-26 18:04:23 +02:00
Michal Čihař
2c256da5e8
Merge commit '73fd0dc2a8f5471c717a887aae22bde97bc5498f'
2016-03-01 07:45:58 +01:00
Michal Čihař
a29f154f37
Merge branch 'MAINT_4_5_5-security' into QA_4_6-security
2016-02-29 10:35:47 +01:00
Durgesh
0b64827930
Refactored url parmeters generating, Issue #11990
...
Signed-off-by: Durgesh <007durgesh219@gmail.com>
2016-02-22 14:36:41 +05:30
Michal Čihař
86d3d0bc04
Define theme for all tests
...
This allows to unify environment.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-12 15:14:39 +01:00
Michal Čihař
2a01a5520d
Merge branch 'QA_4_6'
2016-02-08 09:56:36 +01:00
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ř
10e11fe67d
Replace define by using Config class
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-08 09:36:27 +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
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ř
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ř
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
Madhura Jayaratne
2b7cfb595d
Move the rest of the tests related to objects under a common parent test
...
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-12-18 21:32:34 +11:00