Commit Graph

252 Commits

Author SHA1 Message Date
Jeff Chan
659efe1a88 Import dependencies to make unit tests friendlier to running independently
The HHVM test runner runs the unit tests in parallel. Currently some tests
fail because not all the dependencies are properly included.

This is similar to 840f7b1215

Signed-off-by: Jeff Chan <jefftchan@gmail.com>
2014-03-09 08:16:24 +00:00
Madhura Jayaratne
2512ffe513 Merge pull request #1034 from jeffchan/fix-export-tests
Import export.lib.php to make unit tests friendlier to running independently
2014-03-09 11:41:56 +05:30
Jeff Chan
4f241de077 Import export.lib.php to make unit tests friendlier to running independently
The HHVM test runner runs the unit tests in parallel. Currently some tests
fail because not all the dependencies are properly included.

This is similar to 1d58392622

Signed-off-by: Jeff Chan <jefftchan@gmail.com>
2014-03-09 05:03:05 +00:00
Jeff Chan
6b0e7d6807 Remove duplicate include_once
Signed-off-by: Jeff Chan <jefftchan@gmail.com>
2014-03-09 04:55:55 +00:00
Michal Čihař
3f9c963abe Merge remote-tracking branch 'origin/QA_4_1' 2014-03-03 09:28:55 +01:00
Dhananjay Nakrani
76c57710f0 Display session expiry msg after auto-redirect.
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
2014-03-03 11:49:17 +05:30
minhaz
f1529325ff coding style fix
Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-03-01 02:49:56 +05:30
Chirayu Chiripal
dec30ffd6d Feature Request #1460 Redirect to login page after session has expired
Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
2014-02-27 17:45:46 +05:30
Michal Čihař
c189d3a410 Merge commit '501d25fe622a83826b0d57541eb4f2551c49f5af' 2014-02-27 10:54:40 +01:00
minhaz
501d25fe62 fixing build test and adding test cases
Test case added for testBlowfishDecrypt() and modified for testBlowfishEncrypt()
Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-02-27 14:46:57 +05:30
minhaz
495eda9df3 testBlowFishDecrypt() testcase added
Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-02-27 04:23:43 +05:30
Michal Čihař
7a325cf5ad Fix regexp to match
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-24 12:33:16 +01:00
Michal Čihař
b63ddb6b41 Test encoded binary output
Otherwise PHP sometimes refuses to match binary content using PCRE.

Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-24 11:59:41 +01:00
Michal Čihař
b485c6105c Remove blank lines from the end of PHP files (causing extra output)
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-24 10:57:21 +01:00
Marc Delisle
e8f14e0ac0 Merge pull request #897 from dhananjay92/bug#4237
Fix for bug#4237.
2014-02-07 12:37:33 -05:00
Dhananjay
0a18d86059 Fix for bug#4237.
Signed-off-by: Dhananjay <dhananjaynakrani@gmail.com>
2014-02-07 11:56:46 +05:30
Chanaka Indrajith
4457f40ef4 Support for export server/db/table without views
Signed-off-by: Chanaka Indrajith <pe.chanaka.ck@gmail.com>
2014-02-06 23:03:04 +05:30
Chanaka Indrajith
55151381fa rfe-1403 : Support for export only triggers/stored procedures
Signed-off-by: Chanaka Indrajith <pe.chanaka.ck@gmail.com>
2014-02-04 22:47:00 +05:30
Michal Čihař
396991a194 Merge remote-tracking branch 'origin/QA_4_1' 2014-02-03 09:01:55 +01:00
Michal Čihař
87bbb24496 Fix tescase for new parameter passed to recaptcha
Signed-off-by: Michal Čihař <mcihar@suse.cz>
2014-02-03 09:00:31 +01:00
Michal Čihař
0e5be0dff1 Fix test case expectations
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-02 12:27:32 +01:00
Chanaka Indrajith
2988aebc86 rfe-1483 : Export database without triggers
Signed-off-by: Chanaka Indrajith <pe.chanaka.ck@gmail.com>
2014-01-28 23:09:59 +05:30
Marc Delisle
3d72b1cc87 Fix typos
Signed-off-by: Marc Delisle <marc@infomarc.info>
2014-01-24 08:24:14 -05:00
Marc Delisle
edde7126ce Move functions to library file
Signed-off-by: Marc Delisle <marc@infomarc.info>
2013-12-25 09:18:29 -05:00
Marc Delisle
4f612de31d Remove unneeded transformation
Signed-off-by: Marc Delisle <marc@infomarc.info>
2013-12-06 06:31:47 -05:00
ptarjan
840f7b1215 Make unit tests friendlier to running independently 2013-11-20 14:43:55 -08:00
Marc Delisle
d8fd82a9f5 The DisableIS directive is removed 2013-11-05 12:44:04 -05:00
Marc Delisle
57ef25eed8 The DisableIS directive is being deprecated 2013-11-05 05:10:13 -05:00
Madhura Jayaratne
f311c9c502 Remove trailing white spaces 2013-11-03 19:13:23 +05:30
Madhura Jayaratne
184316d891 Coding style fixes 2013-11-03 19:00:41 +05:30
Piotr Przybylski
a67e41a646 Refactored ConfigFile class so that it is no longer a singleton
Fixes bug #4123 Double config including
2013-11-03 12:54:20 +01:00
Madhura Jayaratne
5f72019a66 Fix failing tests 2013-10-19 13:02:43 +05:30
Marc Delisle
c7e504b337 This test should use a numeric value 2013-10-11 12:57:46 -04:00
adamgsoc2013
d3a87951de using a smaller test data to make it run more quick 2013-09-14 16:53:38 +08:00
adamgsoc2013
3d6f38223e move mock dbi code to setup function 2013-09-13 22:01:44 +08:00
adamgsoc2013
d9fe181553 add comment for DRIZZLE=false branch 2013-09-13 16:34:48 +08:00
adamgsoc2013
0e10ad4738 add Unit test case for import sharp files 2013-09-12 21:11:17 +08:00
Dieter Adriaenssens
4a2a360f8c fix coding style 2013-09-07 23:08:02 +02:00
Michal Čihař
6b9dd0e096 Whitespace cleanup 2013-08-21 14:06:44 +02:00
Michal Čihař
f2b6a3d8b2 Properly mark test as incomplete 2013-08-21 14:06:44 +02:00
Michal Čihař
9d00e5934c Merge pull request #571 from ayushchd/ut
Ut
2013-08-13 06:35:23 -07:00
Michal Čihař
0298467060 Another extra escaping 2013-08-12 18:12:39 +02:00
Michal Čihař
73578413e8 More removed escaping 2013-08-12 18:10:12 +02:00
Michal Čihař
11c986d336 More output fixes 2013-08-12 18:05:26 +02:00
Michal Čihař
d92c5e5590 Fix expected data without html escaping 2013-08-12 18:01:55 +02:00
Michal Čihař
6521ed2283 Missing include and variable 2013-08-12 17:50:46 +02:00
Michal Čihař
15e9c2a538 Correctly set expectation on output 2013-08-12 17:49:00 +02:00
Michal Čihař
28f4263c49 Text all exports as sending file
It makes no sense to go through htmlspecialchars for binary formats.
2013-08-12 17:43:41 +02:00
Michal Čihař
65986506bd Whitespace cleanup 2013-08-12 17:35:26 +02:00
Michal Čihař
638f7be48e Add missing include 2013-08-12 17:35:19 +02:00
adamgsoc2013
d467f4441a fix code Static Analysis Warnings 2013-08-09 23:19:13 +08:00
ayushchd
b9a5bffaba Testsuite code-compliance fixes 2013-08-07 22:28:46 +05:30
Michal Čihař
d7c3b58337 Dropped MySQL manual type configuration
Nothing but default settings is really working now:

- most formats are no longer available on MySQL formats
- for downloadable doc our links are in most cases broken and nobody
  noticed this, so I assume nobody is using this
- anyway most current installations don't have troubles with internet
  access what was main motivation for this configuration directive
2013-08-07 08:32:01 +02:00
ayushchd
6fa3f66d86 Test for TableProperty class 2013-08-07 00:01:19 +05:30
ayushchd
ff715b1b90 UTs for export libraries 2013-08-07 00:00:51 +05:30
Michal Čihař
e2d154319d Merge pull request #567 from adamgsoc2013/ut_plu_dbi
add test cases to cover more issues on import and transformations
2013-08-06 01:11:42 -07:00
adamgsoc2013
09e4190073 using space instead of tab; fixing indention 2013-08-05 22:48:49 +08:00
adamgsoc2013
12a827abc4 add test cases to cover more issues on import and transformations 2013-08-05 22:43:33 +08:00
xmujay
9fb3acebee split the long assertion which failed due to time hard code 2013-08-04 17:49:26 -04:00
ayushchd
7eebe49fd7 Fix test case for date issue 2013-08-04 20:41:02 +05:30
ayushchd
ec411d700b Fix test case 2013-08-03 23:03:48 +05:30
ayushchd
9c6041c816 More tests for export libraries 2013-08-03 22:25:17 +05:30
ayushchd
81a338679d Tests for libraries/plugins/export* 2013-07-31 02:06:34 +05:30
Michal Čihař
eebdc0ce06 This test takes sometimes longer 2013-07-30 13:42:31 +02:00
Madhura Jayaratne
f25e0e8229 Fix class name 2013-07-27 22:34:32 +05:30
Madhura Jayaratne
c03661e950 Fix indentation 2013-07-27 22:34:04 +05:30
ayushchd
b86f703a6a UTs for libraries/plugins/Plugin* 2013-07-18 15:31:43 +05:45
ayushchd
6f2a532bf0 Tests for AuthenticationHttp and AuthenticationSignon 2013-07-17 17:33:09 +05:45
ayushchd
8629633154 Modify constant values for better understanding 2013-07-17 16:47:25 +05:45
ayushchd
7312cd5b01 Tests for AuthenticationConfig and AuthenticationCookie 2013-07-16 21:44:49 +05:45
xmujay
3f358142cb fix the "Not support query" error by moving mock data to DBI Dummy class 2013-07-13 11:31:01 +08:00
Michal Čihař
b8be7d6285 Merge pull request #463 from adamgsoc2013/UT_pluginss
1. add UT for import ODS 2. fix warning in source code when import ODS file
2013-07-01 06:56:21 -07:00
adamgsoc2013
3138f18769 using OpenOffice ODS file for importing ods testing 2013-07-01 21:38:52 +08:00
adamgsoc2013
daa3a45ed8 add UT from LDI 2013-06-30 13:56:22 +08:00
adamgsoc2013
80ed9fea8d 1. add UT for import ODS 2. fix warning in source code when import ODS file 2013-06-29 22:16:52 +08:00
adamgsoc2013
99f9f6fa3b add test case for import CSV 2013-06-26 21:32:32 +08:00
adamgsoc2013
4cbdd7ce2d add test case for import SQL 2013-06-26 20:51:40 +08:00
adamgsoc2013
c6eed3f5b2 add real test case for import MediaWiki Database 2013-06-24 21:57:56 +08:00
adamgsoc2013
5808e8bfc2 add other test case for more coverage 2013-06-23 00:27:04 +08:00
adamgsoc2013
f8cc205285 using GLOBAL for code concurrency 2013-06-18 16:39:35 +08:00
adamgsoc2013
646329bdde using GLOBAL instead of global for code concurrency 2013-06-18 16:35:52 +08:00
adamgsoc2013
589f75976f change to assertion to import string but not all string since it will be changed frequently 2013-06-18 15:24:42 +08:00
adamgsoc2013
f4e230b180 add timezone setting for Text_Plain_Dateformat 2013-06-18 09:35:45 +08:00
adamgsoc2013
cdfb0b890d fix the assertion due to PMA_IS_GD2 setting 2013-06-17 23:49:04 +08:00
adamgsoc2013
4b0abc1977 1. move test data to test_data dir
2. refactor the require_once
2013-06-17 23:35:07 +08:00
adamgsoc2013
e693108728 Merge branch 'master' of https://github.com/phpmyadmin/phpmyadmin into UT_pluginss 2013-06-17 22:14:15 +08:00
adamgsoc2013
98520eac29 keep code consistence 2013-06-16 13:09:34 +08:00
adamgsoc2013
336d18cdbc remove unneeded case 2013-06-16 12:20:00 +08:00
adamgsoc2013
f7051156a2 fix the timezone difference 2013-06-16 12:11:03 +08:00
adamgsoc2013
82e361376c refactor the output format 2013-06-16 12:01:24 +08:00
adamgsoc2013
e0eccfbaf9 format the output html 2013-06-16 00:15:53 +08:00
adamgsoc2013
0c0d67e4c0 add Image transformations class 2013-06-15 22:36:31 +08:00
adamgsoc2013
43a9886aa3 add doImport real case 2013-06-15 22:06:15 +08:00
Michal Čihař
a3ed2b3db1 Merge pull request #426 from adamgsoc2013/UT_pluginss
add test case for some import class
2013-06-14 00:29:55 -07:00
adamgsoc2013
a2e21be0b7 using HTML tag when testing Text_Plain_Formatted 2013-06-13 22:54:20 +08:00
adamgsoc2013
40356e9831 add test case for some import class 2013-06-13 21:34:35 +08:00
adamgsoc2013
3cea36f8b0 modify the test cases to better ones 2013-06-13 21:09:33 +08:00
adamgsoc2013
e03be6c62f fix assert failed 2013-06-12 22:45:30 +08:00
adamgsoc2013
cbe0bebbb9 add test case for Text_Plain_$type classes 2013-06-12 22:38:35 +08:00
adamgsoc2013
64415ab4c1 add test for applyTransformation 2013-06-12 18:23:30 +08:00
adamgsoc2013
95f29b01c7 testing Text_Plain_Append::getInfo() instead of Text_Plain_Append_getInfo() 2013-06-12 00:20:12 +08:00
adamgsoc2013
7c07bb3b24 add test for transformation class: Text_Plain_Append 2013-06-12 00:08:33 +08:00