1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 07:36:32 +02:00
Commit Graph

12153 Commits

Author SHA1 Message Date
Cameron
1f4bfa256c Fix for custom class on select 2018-09-27 12:02:35 -07:00
Nick Liu
8c7b61fb29 Matching scope for e_form::_inline_token
Should be private to match private function inlineToken()
2018-09-27 11:34:10 -05:00
Nick Liu
c512dc2fcc Started but couldn't test e_parse_shortcode 2018-09-27 11:32:06 -05:00
Jimako
e1a9355eaf {LOGIN_TABLE_FPW_LINK} - added class #3466 2018-09-27 14:42:14 +02:00
Jimako
02ef130feb {LOGIN_TABLE_SIGNUP_LINK} - added class option #3466 2018-09-27 14:29:21 +02:00
Jimako
a650d16573 {LOGIN_TABLE_SUBMIT} - added class parameter 2018-09-27 14:09:22 +02:00
Cameron
c69184848c Merge pull request #3447 from Jimmi08/patch-3
{COMMENT_INPUT} - added class parameters #3444
2018-09-24 16:18:48 -07:00
Cameron
ac34a71508 Merge pull request #3446 from Jimmi08/patch-2
{AUTHOR_INPUT} - added classes parameters #3444
2018-09-24 16:18:25 -07:00
Cameron
e830812e2b Merge pull request #3445 from Jimmi08/patch-1
{COMMENT_BUTTON} - added class parameter #3444
2018-09-24 16:17:28 -07:00
Cameron
47d616000a Merge pull request #3451 from Deltik/fix-3450
Fixes #3450 – SITELINKS_ALT parent button fix
2018-09-24 16:16:23 -07:00
Cameron
9a39046db0 Merge pull request #3449 from Deltik/fix-3437
Fixes #3437 – e_form::inlineToken() performance
2018-09-24 16:14:55 -07:00
Nick Liu
a70d027f65 Fixes #3450 – SITELINKS_ALT parent button fix
Parent links in sitelinks_alt::sitelinks_alt_shortcode() now have their
button image URI parsed by e_parse::replaceConstants(), bringing it into
consistency with the children, which are already parsed the same way.

There is no corresponding test for this in e107-test because hard-coded
dependencies in sitelinks_alt::sitelinks_alt_shortcode() are difficult
to monkey-patch without crippling the performance of e107-test.
2018-09-23 18:39:30 -05:00
Nick Liu
9125b60b59 Added performance test for e_form::inlineToken() 2018-09-23 15:39:37 -05:00
Nick Liu
a374886425 Fixes #3437 – e_form::inlineToken() performance
This "inline token" is generated 30 times in my test, but it's the same
session_id() being hashed. This is wasteful and can be mitigated in two
ways:

* Reducing the time cost like so: return password_hash(session_id(),
PASSWORD_DEFAULT, ['cost' => 04]);
* Storing the hash as an instance variable the first time it's
generated

This commit applies both mitigations.
2018-09-23 15:32:57 -05:00
Nick Liu
6f8d6fff5b Reindented tests/unit/e_formTest.php 2018-09-23 15:26:49 -05:00
Jimako
6f8fdf51e6 Mandatory class for reply to work #3444 2018-09-21 23:09:00 +02:00
Jimako
439c57f3c5 {COMMENT_INPUT} - added class parameters #3444 2018-09-21 22:31:21 +02:00
Jimako
44fd129daa fix for PR 2018-09-21 22:18:40 +02:00
Jimako
2a56ce28bd {AUTHOR_INPUT} - added classes parameters 2018-09-21 22:12:04 +02:00
Jimako
3fe28110bf {COMMENT_BUTTON} - added class parameter #3444 2018-09-21 21:46:13 +02:00
Cameron
9b17485656 Theme Manager: Fix for download icon size on "Find Themes" 2018-09-20 16:41:25 -07:00
Cameron
8c73bf1434 Issue #2146 Partial compatibility fix. Testing required. 2018-09-18 17:58:32 -07:00
Cameron
a4ca72cd8f New user page shortcode {USER_SETTINGS_URL} 2018-09-18 16:45:26 -07:00
Cameron
b0306a1909 Merge pull request #3431 from yesszus/patch-1
Small correction
2018-09-18 15:37:52 -07:00
Cameron
d622aa28a5 Test for XMLSiteLinks 2018-09-18 09:38:59 -07:00
Cameron
150eeaec97 Issue #3439 Sitelinks with function problem 2018-09-18 09:38:34 -07:00
Cameron
9209f912fa db-verify compare 2018-09-16 16:31:32 -07:00
Cameron
4dbaa76284 Fixes #3406 - db verify was not adding Primary Indices correctly when running fixes. 2018-09-16 16:27:14 -07:00
Gábor
371c7f7c86 Update lan_prefs.php 2018-09-13 10:34:35 +02:00
Gábor
cce3a7c98c Update prefs.php
Removed duplication lang codes.
2018-09-13 10:33:28 +02:00
Gábor
f42f4358e8 Small corections 2018-09-13 08:08:31 +02:00
Cameron
7bbf3164c7 Test for [img] bbcode in toHTML() 2018-09-12 13:21:19 -07:00
Cameron
9c13a9dcde Quotation consistency fix for [img] bbcode. 2018-09-12 12:03:17 -07:00
Cameron
5235b4fcaf Fix for database verify charset function. 2018-09-12 11:46:23 -07:00
Nick Liu
c72b08616b Refactored E107Base suite cleanup into "Preparer" classes
Now works with the best of both worlds:

* Barebones cleanup in slow Windows environments
* Git snapshots in other Git environments
2018-09-12 12:54:15 -05:00
Cameron
184edd3193 Issue #1870 , Issue #3420 Login template/shortcode issue. Possible fix. 2018-09-12 10:29:08 -07:00
Cameron
124381f5e7 Merge branch 'master' of https://github.com/e107inc/e107-test 2018-09-11 14:16:29 -07:00
Cameron
4245ff138d Work in Progress. 2018-09-11 14:16:10 -07:00
Nick Liu
11448a4a9f Fixed possible fatal error in e107Test 2018-09-11 16:14:01 -05:00
Cameron
775cf26b98 Media Manager Issue #3426 2018-09-10 12:31:31 -07:00
Cameron
688db76a96 Admin-ui: New method: beforePrefsSave($new_data, $old_data); 2018-09-10 10:42:54 -07:00
Cameron
310b7e84e1 Precaution added for old left-over plugin prefs using hooks 2018-09-09 19:47:50 -07:00
Cameron
0fca5840f2 Disabled VCS modification. Added fixed hash folder name and cleanup before/after tests. 2018-09-09 18:20:20 -07:00
Cameron
846a877795 Added temp folder to ignore 2018-09-09 18:18:15 -07:00
Cameron
5b9e2572a4 Test fixes. 2018-09-09 10:18:19 -07:00
Cameron
69aa6711e9 toGlyph tag cleanup 2018-09-09 10:16:55 -07:00
Nick Liu
8f38794e14 Merge branch 'master' of github.com:e107inc/e107-test 2018-09-09 01:18:48 -05:00
Nick Liu
3af03f1f5e Greatly improved robustness of E107Base
Fixed irreversible data loss bug when preparing the app path repo
for tests

OLD BEHAVIOR
Remove untracked files from the working tree before and after
every test suite. The intention was to remove files that could
have been created by the tests, but this also removes all other
untracked files, including third-party plugins and themes.

NEW BEHAVIOR
There is now a triple locking mechanism protecting the state of
the app repository before tests are run so that after tests have
run, all file contents are restored to how they were before the
tests have run.

There are three locks, each guarding a different part of the
original repo:

* file
* commit
* stash

When the file lock is present, E107Base knows that any other file,
tracked, untracked, or ignored, was created by the tested code.

The file lock is checked into the commit lock, which saves all
tracked and untracked files in the form of a commit. This way,
uncommitted code can be tested without manually making a commit that
includes the untracked files.

The stash lock saves all ignored files in a Git stash. Ignored files
go in a stash instead of in the commit lock because they can be a
confounding variable affecting the outcome of tests. They are usually
user-configurable only and may not represent tested states.

When the saving is complete, E107Base will have access to tracked and
untracked files but not ignored files. The tests are run in this
configuration.

After each test suite runs, the repo is reset and cleaned to return
the files to the same state they were in before the test suite began.

Then, the locks are undone first by rolling back the commit lock,
which restores the originally uncommitted tracked and untracked
files. Next, the stash lock is popped, restoring the originally
ignored files. Finally, the file lock is removed, signifying that the
repo is back to its original data before the test suite was run.

In case of an ungraceful exit, at least one of the locks would be
left in the repo. The next time E107Base runs, locks are checked, and
if one or more are present, the repo is restored before the locks are
reestablished.

If the `git` command is inoperative, only the file lock is operative
and does nothing more than signify a test that is in progress or has
exited unexpectedly. Data protection is silently unenforced. This can
lead to unexpected tracked, untracked, and ignored file modifications
that will not be rolled back after a test suite has run.
2018-09-09 01:18:09 -05:00
Cameron
bc29ef1efe Removed buggy value unserialize test. 2018-09-08 13:44:07 -07:00
Cameron
7340ea8377 Media-Manager icon picker preview size fix. 2018-09-08 11:53:40 -07:00