1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-07 14:13:09 +02:00

95 Commits

Author SHA1 Message Date
Achim Ennenbach
78d3e22de0 Added tests for is_utf8() and fill_phrases_array() 2019-02-03 18:11:39 +01:00
Cameron
ccd877d09d Search test class placeholder added. Simple table parsing test added to db_verify test. 2018-08-17 13:56:35 -07:00
Nick Liu
ee7808b7bf
Major improvements to Deployer system (backwards-incompatible)
Deployers, a concept unique to this repository, are now more separated
from Codeception modules.

This commit adds NoopDeployer, LocalDeployer, and SFTPDeployer to
address the three deployment target types in use by testers today.

The changes are backwards-incompatible because the structure of
config.sample.yml has changed, and all testers need to change their
config.yml or config.local.yml to continue testing. The reason for this
change is that the section "manual" no longer makes sense now that
Deployers are on a spectrum of automation levels.

The subsections under "manual" have been broken out into the root level.

The "db_dump" section has been merged into the new "db" root section.

There is a new "fs" root section used by the SFTP Deployer.

Other changes, enhancements, and bugfixes:

* cPanelDeployer no longer downgrades to "manual" mode when credentials
  are missing or an unsupported component is requested. It now throws an
  exception.
* Deployer::unlinkAppFile() was implemented for acceptance tests out of
  necessity because the app requires a configuration file to be deleted
  before re-running the app's installer.
* If a Deployer subclass does not implement the unlinkAppFile() method,
  tests that depend on the method will be skipped gracefully.
* DeployerFactory now has a better autoload mechanism.
* A logical error in lib/config.php prevented missing nested array items
  from using their default values.
* The Base Helper no longer pointlessly caches the DelayedDb module
* _bootstrap.php serializes the config.yml params into a global constant
  so that the DeployerFactory can freely access the information.
2018-08-15 23:04:59 -05:00
Nick Liu
b440ab7274
Merge branch 'master' of github.com:e107inc/e107-test 2018-08-15 17:09:46 -05:00
Cameron
5e5a13cc62 Added check for Custom-fields 'boostrap3' install.xml data. 2018-08-14 17:07:56 -07:00
Nick Liu
b5b59392eb
Started a basic interface to manipulate files in acceptance tests
- MOD: Renamed lib/deployers/cpanel_deployer.php to
       lib/deployers/cPanelDeployer.php
- MOD: Moved responsibility of reconfiguring Codeception modules to the
       deployers.
- NEW: Abstract class Deployer to standardize the interface to Deployers
- NEW: Acceptance tests now support unlinkE107ConfigFromTestEnvironment
- MOD: Removed null checks for the Deployer in the Base Module
- MOD: Improved public method naming in the Base Module
- MOD: DeployerFactory always returns a Deployer implementation now.
- MOD: InstallCest always clears out the e107_config.php file before
       each test.
2018-08-14 16:03:30 -05:00
Cameron
58cd6f1c05 basic custom-fields test added. 2018-08-13 15:03:56 -07:00
Cameron
c0b24d71a5 Added simple Captcha rendering test. 2018-08-12 10:20:33 -07:00
Achim Ennenbach
7c37b4ba6f added tests for eHelper::title2sef()
The tests are based on my PR e107inc/e107#3370
2018-08-10 21:39:38 +02:00
Cameron
d73bcacaaa New tests for file_class and eHelper placeholder test class added 2018-08-10 11:10:59 -07:00
Cameron
bee5c325d6 Added test for admin-ui Image in form test. (including legacy image path) 2018-08-06 13:08:02 -07:00
Cameron
4edf051945 plugin class tests. 2018-08-05 15:09:33 -07:00
Cameron
d8cfcb0812 plugin tests. Currently failing on remotePluginTest. (reason unknown) 2018-08-03 16:14:33 -07:00
Cameron
c62674c4a5 added simple remote plugin download test. 2018-08-03 13:13:25 -07:00
Cameron
08852f1d61 basic thumbUrl test. 2018-07-28 09:30:37 -07:00
Cameron
7f18e9ddb3 media and file class tests added. 2018-07-27 12:08:28 -07:00
Cameron
8200c7dd00 Simple e_parse toForm test added. 2018-07-24 15:53:34 -07:00
Cameron
76d491c0b9 Simple toHTML() test added. e_parser methods moved into e_parseTest 2018-07-24 13:01:29 -07:00
Cameron
794725b9f5 Added tests for multiple installation scenarios. (Currently different themes) 2018-07-24 12:06:24 -07:00
Cameron
0a1d768840 Made it easier to debug a single plugin. Added extra checks in the linksword plugin test. Disabled empty db_verify tests. 2018-07-23 14:02:30 -07:00
Nick Liu
3c8e52af93
Fixed regressions in unit e_formTest.php
Fixes: #8
2018-07-23 07:17:06 -05:00
Cameron
4320399ea7 Fixed a typo 2018-07-22 11:05:38 -07:00
Cameron
ab35c8a1df Improved code completion in PHPStorm 2018-07-22 11:01:21 -07:00
Cameron
ad9935b666 Code cleanup 2018-07-22 10:52:06 -07:00
Cameron
1c473c96b9 Test added for e_array and placeholder file for core_functions. 2018-07-22 10:41:16 -07:00
Nick L
0fcbba8f67
Merge pull request #7 from SimSync/test_uc_select
added tests for uc_select
2018-07-22 10:09:35 -05:00
Achim Ennenbach
deb544f2cf added tests for uc_select 2018-07-21 22:09:35 +02:00
Cameron
36c6d1425c thumbnail test added. 2018-07-21 13:09:13 -07:00
Cameron
2301c4a042 Ignore e_admin_events addon. 2018-07-21 10:33:00 -07:00
Nick Liu
ba98888424
Restored PHP 5.6 compatibility 2018-07-21 12:19:16 -05:00
Nick Liu
cac7d2fade
Improved variable naming in unit pluginsTest
Also fixed a bug where invalid plugin addon names were being checked
2018-07-21 11:41:31 -05:00
Cameron
249be2979c Basic Plugin Install/Uninstall tests added. 2018-07-20 13:19:07 -07:00
Cameron
293327de53 Draft test for banner plugin. 2018-07-19 20:45:16 -07:00
Cameron
d7ca79a0ef Updated form test to match optDisabled addition. 2018-07-15 12:28:58 -07:00
Cameron
43cde547ad Shortcode handler tests placeholder added. 2018-07-10 14:30:53 -07:00
Nick Liu
5a031fc836
Merge branch 'master' of https://github.com/e107inc/e107-test 2018-06-22 13:46:11 -05:00
Nick Liu
38101a756a
TreeModelTest: Tried varying a primary key value 2018-06-22 13:41:44 -05:00
Deltik
e6a098cc33
C locale applied to all of e_dateTest 2018-06-09 22:34:49 -05:00
Cameron
f8d74ce2e5 Form select() and option() tests. 2018-06-08 18:55:42 -07:00
Cameron
68444cdee0 db_verify test placeholders added. 2018-06-07 14:45:19 -07:00
Cameron
a63b555fd2 Comment out incomplete tests. 2018-05-25 08:52:24 -07:00
Cameron
3e19cca607 Merge branch 'master' of https://github.com/e107inc/e107-test 2018-05-25 08:49:12 -07:00
Cameron
f120fbac7e datepicker test update 2018-05-25 08:48:45 -07:00
Deltik
3a05a1d829
Merge branch 'master' of github.com:e107inc/e107-test 2018-05-24 19:43:12 -05:00
Deltik
c0cc29d830
C locale in e_dateTest::testConvert_date()
Standardized locale in e_dateTest::testConvert_date()
2018-05-24 19:43:04 -05:00
Nick L
b545736083
Merge pull request #5 from SimSync/master
Updated testStrptime() to match the result of strptime on linux.
2018-05-24 20:18:14 +00:00
Achim Ennenbach
fc0e302013 Updated testStrptime() to match the result of strptime on linux.
Should also run fine on windows with the updated e_date::strptime() function.
2018-05-24 22:04:57 +02:00
Cameron
f81fd805a9 additional date mask checks. 2018-05-24 11:50:13 -07:00
Cameron
6fe881a94f Tests added for e_form renderElement() 2018-05-23 18:50:01 -07:00
Achim Ennenbach
000d649102 fixed wrong expected value 2018-05-15 22:53:27 +02:00