1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

457 Commits

Author SHA1 Message Date
Nick Liu
e261e4fb2d
Fix undefined constants when e107Test::testGetCoreTemplate() runs first
---------
1) e_navigationTest: Admin links plugins
 Test  tests/unit/e_navigationTest.php:testAdminLinksPlugins

Error: ;1m  [Error] Undefined constant "E_16_PLUGMANAGER"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:882
#2  /__w/e107/e107/e107_tests/tests/unit/e_navigationTest.php:528

---------
2) e_navigationTest: Admin links legacy
 Test  tests/unit/e_navigationTest.php:testAdminLinksLegacy

Error: ;1m  [Error] Undefined constant "E_32_MAIN"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2  /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3  /__w/e107/e107/e107_tests/tests/unit/e_navigationTest.php:374

---------
3) e_formTest: Render value
 Test  tests/unit/e_formTest.php:testRenderValue

Error: ;1m  [Error] Undefined constant "ADMIN_TRUE_ICON"

#1  /__w/e107/e107/e107_tests/tests/unit/e_formTest.php:943

---------
4) scriptsTest: Admin scripts
 Test  tests/unit/scriptsTest.php:testAdminScripts

Error: ;1m  [Error] Undefined constant "E_32_MAIN"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2  /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3  /__w/e107/e107/e107_admin/includes/infopanel.php:110
#4  /__w/e107/e107/e107_admin/includes/flexpanel.php:66
#5  /__w/e107/e107/e107_admin/admin.php:63
#6  /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:140
#7  /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:27

---------
5) e_formTest: Render value inline
 Test  tests/unit/e_formTest.php:testRenderValueInline

Error: ;1m  [Error] Undefined constant "ADMIN_FALSE_ICON"

#1  /__w/e107/e107/e107_handlers/form_handler.php:5829
#2  /__w/e107/e107/e107_tests/tests/unit/e_formTest.php:1029

---------
6) e_navigationTest: Admin links sub
 Test  tests/unit/e_navigationTest.php:testAdminLinksSub

Error: ;1m  [Error] Undefined constant "E_32_MAIN"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2  /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3  /__w/e107/e107/e107_tests/tests/unit/e_navigationTest.php:418

---------
7) e_parse_shortcodeTest: Admin shortcodes
 Test  tests/unit/e_parse_shortcodeTest.php:testAdminShortcodes

Error: ;1m  [Error] Undefined constant "E_16_NEWS"

#1  /__w/e107/e107/e107_core/shortcodes/batch/admin_shortcodes.php:518
#2  /__w/e107/e107/e107_core/shortcodes/batch/admin_shortcodes.php:602
#3  /__w/e107/e107/e107_handlers/shortcode_handler.php:1130
#4  e_parse_shortcode->doCode
#5  /__w/e107/e107/e107_handlers/shortcode_handler.php:996
#6  /__w/e107/e107/e107_handlers/e_parse_class.php:823
#7  /__w/e107/e107/e107_tests/tests/unit/e_parse_shortcodeTest.php:1588
#8  /__w/e107/e107/e107_tests/tests/unit/e_parse_shortcodeTest.php:220

---------
8) scriptsTest: Admin includes
 Test  tests/unit/scriptsTest.php:testAdminIncludes

Error: ;1m  [Error] Undefined constant "E_32_MAIN"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2  /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3  /__w/e107/e107/e107_admin/includes/categories.php:22
#4  /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:140
#5  /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:36

--

There was 1 failure:

---------
1) e107Test: Load admin icons
 Test  tests/unit/e107Test.php:testLoadAdminIcons
E_16_FACEBOOK is missing from admin_icons_template
#1  /__w/e107/e107/e107_tests/tests/unit/e107Test.php:1054
2021-04-13 15:03:36 -05:00
Nick Liu
c68604b971
Don't assume an empty table in e_db_abstractTest::testIsEmpty() 2021-04-13 15:03:36 -05:00
Nick Liu
99aa39a8e5
e107_tests: Removed usages of var_dump() 2021-04-13 15:03:36 -05:00
Nick Liu
2ebf1f7110
Removed failing test with no assertions
* pluginsTest::testPluginScripts()
2021-03-12 20:06:00 -06:00
Cameron
8f7ab86413 Fixes #4486 - Invalid attributes not being fully filtered. 2021-04-12 11:13:37 -07:00
Cameron
444d8d6dc0 Issue #4486 - iframe accepted attributes updated 2021-04-12 11:01:58 -07:00
Cameron
9e091aedf4 Added new hybridauth providers. (Apple, Pinterest etc) 2021-04-12 10:32:24 -07:00
Cameron
2862e18db9 Issue #4471 2021-04-06 18:41:15 -07:00
Cameron
5ed2440272 Issue #4473 - some merged code from Deltik 2021-03-31 13:04:20 -07:00
Cameron
8ff427cfc4 #Issue #4473 - some merged code. 2021-03-31 12:35:26 -07:00
Cameron
2904f1e792 All Unit tests passing locally. 2021-03-31 12:11:23 -07:00
Cameron
9053e6170f Fixes #4465 Some nested comments were not displaying. The number of DB queries when nested comments is active has now been dramatically reduced. Comments unit test added. 2021-03-25 13:52:05 -07:00
Cameron
56d4855192 Fixes #4464 - Updated comment render() example to match functionality. 2021-03-25 11:23:47 -07:00
Cameron
fb3888abc3 Fixes #4443 - set default stylesheet scope to 'front' when attribute has been omitted from theme.xml. 2021-03-11 09:27:38 -08:00
Cameron
4064389eb3 Restore e107_config.php on test failure. 2021-03-06 09:33:22 -08:00
Cameron
e4937d0819 Fixes #4427 - Also added test for diacritics in URL. 2021-03-01 18:47:45 -08:00
Cameron
a427c14806 Issue #3912 Fix for partial route match. Partials should always end with a '/' for predictable results. 2021-02-26 11:56:10 -08:00
Cameron
cb95b4b243 Hero cleanup for Bootstrap5. Switched to placeholder images. Admin-ui type 'image' now loads remote URLs correctly. 2021-02-26 10:13:07 -08:00
Cameron
443c60cb52 News shortcode correction. 2021-02-24 15:43:58 -08:00
Cameron
52a554987b PHP error fixes. 2021-02-22 12:22:50 -08:00
Cameron
e425349661 Issue #3912 - Reverse lookup e_ROUTE from e_url.php 'legacy' entry. 2021-02-21 14:10:47 -08:00
Cameron
236ccd2261 Removed Bootstrap5 reference. 2021-02-21 10:06:38 -08:00
Cameron
176ae86409 Issue #3068 - Added a warning for misconfigured theme layouts.
Moved e_layout class to menumanager_class.php file.
Closes #4030 - Menu Layout detection test.
themeLan() was failing with themes containing hyphens in the folder name.
2021-02-20 12:15:28 -08:00
Cameron
46b6927447 Fixes #4403 - Parsing of [code]. Test added. 2021-02-19 16:07:12 -08:00
Cameron
0db4b1164f Fixes #4394 '__tabs__' was being displayed in custom fields form. Test added. 2021-02-18 10:27:59 -08:00
Cameron
2f08384dcb Issue #4400 Added test for hasMessage(false); 2021-02-18 09:31:25 -08:00
Cameron
72c18d46c0 Closes #4400 Added message handler tests for getAll() and hasMessage(). 2021-02-18 06:54:24 -08:00
Cameron
823a228e7e Issue #3912 Typing ':' now pops-up a menu of available routes. Bootstrap-suggest library added for this and other areas in future. 2021-02-17 14:33:35 -08:00
Cameron
50e0445807 Issue #3184 Issue #3912 New Feature: can now use :(e_ROUTE) to switch theme layout visibility. 2021-02-14 10:36:45 -08:00
Cameron
aee77a102f Set profanity list limit to 1000. (Could reduce performance)
Fix for comment template. Prevent secureImage from buffering too many keys.
2021-02-14 07:02:09 -08:00
Cameron
b0300f93bf Changed load order of Menus and Theme Layout detection. 2021-02-13 18:55:44 -08:00
Cameron
3bb541a6d9 Issue #4228 Theme manager - display only the relevant stylesheets for the selected scope. 2021-02-13 17:56:53 -08:00
Cameron
6d29e4244d Fix icon appearing on admin language selection. Minor tweaks 2021-02-13 07:58:24 -08:00
Cameron
5ec3aa7245 Set 'front' by default if theme.xml library scope is missing. 2021-02-13 06:50:17 -08:00
Cameron
800f8734bf Tweak of isCompatible method. 2021-02-13 06:15:42 -08:00
Cameron
2bf5ee3909 Admin area tool tips simplified to a single location. Pref simplified to Enable/Disable. Fixed flip-switch 'e-expandit' failures in Admin > Prefs. 2021-02-12 12:19:58 -08:00
Cameron
c8a3e6e1c8 Disabled testSignupExtendedUserFieldsShortcode until test solution found. Load admin icons sooner. 2021-02-12 08:37:26 -08:00
Cameron
a57c598168 Added missing TinyMce4 files. 2021-02-12 06:16:07 -08:00
Cameron
7133d4bb6f Closes #4228 TinyMce can now load the frontend theme in the editor when 'wysiwyg' is found in the scope of a declared css file within theme.xml
Fixes #4371 - FontAwesome5 is now loaded in the TinyMce editor when detected in the frontend theme.
2021-02-11 16:39:50 -08:00
Cameron
b0d10199b7 Added getScope() to theme handler. Added more theme handler tests. Fixed duplicate entry in _blank/theme.xml 2021-02-11 08:51:02 -08:00
Moc
853cd70b88
Update help tooltip unit test so it passes
Changed in 5842e51f15
2021-02-10 19:27:24 +01:00
Cameron
0cd5381435 Fix theme shortcode login menu icons 2021-02-10 02:57:43 -08:00
Cameron
72c54371cc e107::getSession()->set will now accept multi-dimensional key format. Test added. Form-handler PHP8 fix. 2021-02-08 11:59:04 -08:00
Cameron
608c0c57b1 Extra test for e107::unserialize() with array input. 2021-02-08 08:49:39 -08:00
Cameron
c32e5bf1e2 e107::unserialize() will now return the array if the input is an array. Additional form-handler tests added for type: media, file and files. Admin-ui can now manage a change of field type from 'array' to 'json' without additional changes needed. 2021-02-08 08:44:44 -08:00
Cameron
0fd7ee6482 Fixes faulty parsing of _GET when debug is activated. Pref editor will now use var_export on arrays when debug mode is active. 2021-02-06 12:48:19 -08:00
Cameron
e121920d20 Fix for e_bbTest 2021-02-05 19:07:21 -08:00
Cameron
2337b075a8 Fixes #4346 - TinyMce parser issue. Hide side-panel help icon on legacy admin theme. 2021-02-05 18:31:54 -08:00
Cameron
5870fbdb84 "<div class='field-help'>" etc has been replaced by the $frm->help() method and is also used by the admin-ui. 2021-02-04 08:45:10 -08:00
Cameron
23b6ef4af7 FontAwesome upgraded to 5.15.2 2021-02-03 08:11:48 -08:00