Commit Graph

71 Commits

Author SHA1 Message Date
minhaz
06e7aa4c26 Test case for Config.class.php fixed
Testcases modified:
Two test cases - one for no config file , other with config file

Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-03-06 12:08:48 +05:30
minhaz
13baf4ea18 testing permission for test object
Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-03-06 00:44:37 +05:30
minhaz
5868049867 Update PMA_Config_test.php
As per discussion in mailing list, another object is used to check for file permission while global object remains same!
Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-03-05 23:01:05 +05:30
minhaz
f580c8fb94 Correcting test for Config.class.php
The constant used to load config file i.e CONFIG_FILE was config.inc.php while it did not exist in code base, which was causing two similar test-case with no config-file.
CONFIG_FILE has been replaced with "config.sample.inc.php" which can be tested for.
 
Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-03-04 00:49:57 +05:30
minhaz
34a11a06fb Testcase build failure fixed
Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-03-02 15:23:45 +05:30
minhaz
5b8bf48dad testCase bild fail fixed
Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-03-02 14:44:39 +05:30
minhaz
47dfc2e3f0 tearDown() function to unset GLOBALS used for this test
Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-03-02 13:43:38 +05:30
minhaz
f7b35e52ef Added testcase for testCheckPermissions()
Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-03-02 13:41:57 +05:30
minhaz
b32b8ade30 Test object unset on test completion
The tearDown() function was kept empty without releasing resources of current object

Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-03-01 04:42:51 +05:30
J.M
1d5b248706 Add test case for Internet Explorer 11 detection 2013-11-21 20:40:42 +01:00
Madhura Jayaratne
d4c3a75e3e Add missing doc comment 2013-08-27 23:38:13 +05:30
adamgsoc2013
05f7400ff9 fix code Static Analysis Warnings 2013-08-12 00:18:04 +08:00
ayushchd
b9a5bffaba Testsuite code-compliance fixes 2013-08-07 22:28:46 +05:30
Michal Čihař
ba9cff2736 Set token in single place for all tests 2013-06-11 13:53:31 +02:00
Michal Čihař
f211f63327 Allow test to run standalone 2013-06-11 13:50:09 +02:00
adamgsoc2013
f2b5db7c04 fix the test case error due to fontsize setting 2013-05-20 21:07:38 +08:00
adamgsoc2013
01fe907a28 add test getFontsizeOptions for "em","Pt","px" unit 2013-05-16 00:44:36 +08:00
adamgsoc2013
d88b4599de add testGetFontsizeForm for PMA_Config_test 2013-05-08 23:22:10 +08:00
Michal Čihař
e7355e49b1 Fix indentation 2013-05-02 15:23:13 +02:00
Michal Čihař
e6ff6dc9a8 Merge pull request #256 from adamgsoc2013/UT_config2
add test case for Config.class.php:
2013-04-16 00:16:35 -07:00
adamgsoc2013
b2d191b39e follow PMA coding style, add space after comma. 2013-04-16 15:06:37 +08:00
adamgsoc2013
d13fbbbc41 add test case for Config.class.php:
1 testIsGitRevision
2 testCheckHTTP

per http://ci.phpmyadmin.net/job/phpMyAdmin/cloverphp/libraries_Config.class.php.html
It can increase a lot of code coverage
2013-04-16 13:51:31 +08:00
Michal Čihař
a7b1e909fd Merge pull request #241 from ayushchd/issue_https
Fixed config tests and static variable issue
2013-04-15 02:38:57 -07:00
Madhura Jayaratne
8ea9c0719e TRUE, FALSE and NULL must be lowercase 2013-04-12 22:00:54 +05:30
ayushchd
62c6910116 Fixed config tests for https detection and output compression 2013-04-12 21:11:03 +05:30
J.M
c3e8a8cc44 Add tests for IE9, IE10, IE11, Chrome 2013-04-08 14:52:18 +02:00
ayushchd
46e7d3fd0c Implemented Config Test testGetThemeUniqueValue() 2013-04-05 14:27:57 +05:30
ayushchd
79c607df95 Fixed webOS detection for Darwin 2013-04-05 14:25:29 +05:30
Marc Delisle
6ec9b8336b Fix merge conflicts 2013-03-26 07:49:12 -04:00
Marc Delisle
c7d32bf649 Adjust tests for new Safari detection 2013-03-25 20:09:45 -04:00
Michal Čihař
f9abb77686 Correctly test for PHP_OS detection 2013-02-13 09:27:05 +01:00
Madhura Jayaratne
bc5de586c6 Doc block improvements (mostly specifying return types) 2012-09-26 22:55:04 +05:30
Madhura Jayaratne
3849390b8b Fix function name: PMA_array_merge_recursive -> PMA_arrayMergeRecursive 2012-06-01 21:57:07 +05:30
Michal Čihař
2a7358c9ab Rewrite another test using dataProvider 2012-05-14 16:15:58 +02:00
Michal Čihař
1b1f501ac8 Wrap some long lines 2012-05-14 16:12:32 +02:00
Michal Čihař
d597d31f9e Add doc 2012-05-14 16:09:02 +02:00
Michal Čihař
97a1ecbdd8 Remove commented out code 2012-05-14 16:08:35 +02:00
Michal Čihař
e96a4379b0 Merge two tests for checkPmaAbsoluteUri 2012-05-14 16:07:19 +02:00
Michal Čihař
5c466ab97a Add some docs 2012-05-14 16:07:07 +02:00
Michal Čihař
69f80f473b More tests for loading config file 2012-05-14 16:01:26 +02:00
Michal Čihař
de343ab837 Test loading some arbitrary file 2012-05-14 15:58:18 +02:00
Michal Čihař
71836ff80b Remove debug code 2012-05-14 15:52:05 +02:00
Michal Čihař
7db8a82848 Separate group from other attrs 2012-05-14 15:51:55 +02:00
Michal Čihař
5413a168a8 Add missing group 2012-05-14 15:48:38 +02:00
Michal Čihař
db97f75d96 Add another test 2012-05-14 15:47:44 +02:00
Michal Čihař
121b798f0e Split out checkPmaAbsoluteUri using dataProvider 2012-05-14 15:46:56 +02:00
Michal Čihař
1208be3d1a Wrap some long lines 2012-05-14 15:44:19 +02:00
Michal Čihař
bd8d3e0134 Remove never implemented save method and test for it 2012-05-14 15:40:20 +02:00
Michal Čihař
e9e05017df Document tests, remove test methods which do not make much sense 2012-05-14 15:39:46 +02:00
Michal Čihař
a98050db2c Implement testGetCookiePath test 2012-05-14 15:31:56 +02:00