Commit Graph

52 Commits

Author SHA1 Message Date
Robbie Averill
c7235e1c5d FIX Comments GridField tests now use their own test stubs 2018-06-20 16:53:14 +12:00
Robbie Averill
4e23771d79 Add Team stub class to extra_dataobjects 2018-06-20 16:48:26 +12:00
Robbie Averill
32ec3bde50
FIX Add getDate method to return created date for comments, tidy up translations
RSS feeds are looking for $Date, so this method maps to the created field in these cases
2018-06-15 16:40:44 +01:00
Robbie Averill
788cb6e6d1 FIX Mock akismet spam protector if installed, fixes broken integration tests 2018-06-15 16:50:14 +12:00
Robbie Averill
eca3ac0e94
FIX Allow tests to handle extra field labels being added in global state 2018-06-13 09:59:23 +12:00
Guy
c22daa2ee0 FIX Removing ID from match in tests 2018-05-30 12:25:49 +12:00
Robbie Averill
614b525c04
FIX Loosen assertions in case extension provide extra columns in global state 2018-05-29 18:56:32 +12:00
Daniel Hensby
aa46291adf
Merge pull request #249 from Dennisprins93/master 2018-05-11 14:14:58 +01:00
Raissa North
8d5edc7821 Use FunctionalTest instead of SapphireTest to disable themes. 2018-03-09 16:45:38 +13:00
Robbie Averill
4bf0a83ad3 FIX Update CommentAdmin test to create a mock session and not assert missing translation 2017-12-19 09:32:56 +13:00
Robbie Averill
b02928e02a Merge branch '2' 2017-12-19 09:14:47 +13:00
Robbie Averill
75d7de9aa6 FIX Add extra DataObject stub to CommentsGridFieldActionTest and update expectations 2017-12-14 17:57:03 +13:00
Robbie Averill
3f6f651eea FIX Replace French translation in CommentAdminTest now that it's available 2017-12-12 17:12:10 +13:00
Robbie Averill
c6f8973342 NEW Convert to vendor module, add table_name to test stubs and add PHP 7.2 to travis 2017-12-12 17:03:04 +13:00
Robbie Averill
7700d88d4a FIX Remove base path assertions from tests which behave differently using phpdbg 2017-10-10 09:26:17 +13:00
Robbie Averill
fa61608c7d FIX Merge config in tests, add phpcs and add HTML purifier to Travis builds 2017-10-09 17:26:07 +13:00
Will Rossiter
f294ab26d6 Update tests and lang’s for 4.0 2017-09-18 14:16:24 +12:00
Will Rossiter
d9333b3160 Test fixes 2017-09-14 11:12:07 +12:00
Will Rossiter
7fff17b317 Correct extra dataobjects array name 2017-09-14 10:28:29 +12:00
Will Rossiter
0c964d1ed8 Composer lint 2017-09-14 09:41:11 +12:00
Robbie Averill
c02d851500 FIX Remove providePermissions tests
Removed the testProvidePermissions case since it is testing localisations that do not exist, and a localisation that belongs to the framework which should not be tested here.
2017-06-13 11:09:56 +12:00
Robbie Averill
fc4d78605a FIX Use a CommentableItem as the parent for the test Comment 2017-01-27 16:42:26 +13:00
Robbie Averill
d1697606e1 FIX Change BaseClass to ParentClass 2017-01-27 16:20:14 +13:00
Robbie Averill
d1b947afbe FIX Use test database in GridFieldAction test class 2017-01-27 15:56:19 +13:00
Robbie Averill
7a92b0915d Remove deprecated@2.0. Update Migrate task to check table name. Minor tweaks to class names. Use Director::absoluteURL. 2017-01-17 17:39:06 +13:00
Robbie Averill
ab3f35257b SS4 compatibility updates - ORM, Form, Controller changes
* Remove CommentList and replace with a polymorphic has_one relationship
* Tweaks for unit tests. Add tests for encode/decodeClassName.
2017-01-17 16:25:09 +13:00
Janne Klouman
b34a41e828 Added $usesDatabase = true to CommentAdminTest 2016-07-05 10:26:08 +02:00
Damian Mooyman
4b31713128 Reformat as PSR-2 2016-02-19 13:48:25 +13:00
Gordon Anderson
fd153265e9 ENHANCEMENT: Ajax spam/ham/approve/delete ressurected. Added confirm box for delete 2016-02-15 16:38:17 +07:00
Gordon Anderson
551841fbda FIX: Take account of spam/moderation status when enabling replies to a comment 2016-02-13 21:47:50 +07:00
Gordon Anderson
eba88fe869 ENHANCEMENT: Increase test coverage from 54% to 92% 2016-01-17 16:15:07 +07:00
Damian Mooyman
752d509d1e BUG Fix assignment of default values
Fixes #130
2015-08-25 16:49:58 +12:00
Damian Mooyman
468df23801 Nested comments proof of concept
Update theme to new look and feel
Add jquery-validate 1.3.1 (w/ nz dst patch)
2015-04-21 11:12:42 +12:00
Christopher Pitt
a004dfe780 Fixed comment permissions 2015-04-16 11:01:34 +12:00
Damian Mooyman
3deea94a8c API Restore ability to do frontend-moderation
This feature is disabled by default, but can be turned on either for spam, unmoderated comments, or both.
2015-04-14 14:04:29 +12:00
Damian Mooyman
6ebbd9e1ac API Allow commenting options to be set per-page in CMS 2015-04-13 15:35:25 +12:00
Damian Mooyman
1900ab14b5 API Move configuration of comments to the config API and enable per-instance configuration
Enable comment moderation per-page
2015-04-09 10:34:33 +12:00
Damian Mooyman
26d0212ef3 BUG Workaround for https://github.com/silverstripe/silverstripe-framework/pull/4053 2015-04-01 15:29:01 +13:00
Damian Mooyman
b5a53451b3 UX Improvements
Redirect to login form if lacking permissions
Better redirectBack if we can guess from the comment
2015-03-30 18:57:29 +13:00
Damian Mooyman
9087261654 Better XSS Protection via hashed token
Allows moderation links to be generated for users other than the currently logged in user, as it doesn't rely on the current session.
2015-03-30 14:56:28 +13:00
Will Rossiter
5cfa476264 Remove relation to comments (Fixes #76) 2013-12-19 19:56:46 +13:00
Will Rossiter
5a8de05ea7 FIX: #73 If moderation enabled, ensure spam responses aren't included. 2013-11-28 21:29:11 +13:00
Ingo Schommer
ea3fc6ad2b 3.1 compat 2013-04-11 14:23:03 +02:00
Will Rossiter
172f74f980 Wildcard rules have been disallowed in 3.1 2013-03-05 22:04:15 +13:00
Ingo Schommer
e450807b1c NEW Optionally allow (sanitized) HTML in comments 2013-03-04 12:10:56 +01:00
Sean Harvey
50ff534ef3 Fixing tests 2012-10-11 11:16:27 +13:00
Will Rossiter
6d3597095f FIX: Implement paginated list for RSS feed. Fixes #31.
Includes functional tests for the RSSFeed but currently commented out until that feature lands in the main framework.
2012-07-31 20:45:29 +12:00
Will Rossiter
fd0699fbcc Remove superseded tests. 2012-07-22 13:52:50 +12:00
Will Rossiter
6d1c5f2b30 MINOR: updated isAjax() calls to 3.0 compatible api 2012-06-02 09:34:35 +12:00
Will Rossiter
5dec31c84f ENHANCEMENT: dont allow comments to be displayed on fake pages such as security. BUGFIX: updated commentadmin tests to just work 2010-12-11 18:33:21 +13:00