Commit Graph

17 Commits

Author SHA1 Message Date
Robbie Averill
563e33c772 Add phpcs ruleset and fix violations 2017-07-20 10:05:29 +12:00
Andrew Aitken-Fincham
ffc12f53bc total refactor of blog.yml for tests, use classes properly 2017-07-04 18:01:39 +01:00
Sam Minnee
f5c2537c03 MINOR: Add test to for blog tag urlsegment generation
This behaviour confused me so adding a test to clarify that it’s
intentional.
2017-05-11 12:29:44 +12:00
Sam Minnee
50d928101c FIX: Speed up tests by simplifying fixture
Requires https://github.com/silverstripe/silverstripe-framework/pull/6872
2017-05-11 12:29:41 +12:00
Robbie Averill
c004bad7b8 FIX Update class imports, fix broken test, add missing multibyte logic back, fix condition for generating URLSegment (also missing) 2017-01-26 21:41:28 +13:00
Robbie Averill
13a5badff5 Move "code" to PSR-4 friendly "src" folders. Add namespacing. 2017-01-12 10:20:42 +13:00
micmania1
f5974d80a2 NEW Moved URLSegmentExtension, BlogTag and BlogCateogry shared functionality into a trait 2017-01-12 10:19:39 +13:00
micmania1
e4c3b879e8 FIX #376 allow multibyte chars in url segment 2016-05-31 14:00:54 +12:00
micmania1
8135f67b71 FIX Prevent duplicate tags and categories. 2016-02-05 23:21:13 +00:00
Gordon Anderson
cb45815fbd FIX: Tests now pass in Postgres on 3.1 and 3.2
Problems resolved:
1) Case sensitivy of check on Code field of Group
2) MySQL and Postgres have different date functions
3) When BlogID is empty, explicitly set it to 0.  If not then all tests break under Postgres
2016-01-22 22:48:02 +07:00
helpfulrobot
f82825d9a6 Converted to PSR-2 2015-11-21 19:17:29 +13:00
Christopher Pitt
787c02a19d Clean up 2015-05-11 10:11:21 +12:00
Damian Mooyman
45a1af4a0d BUG Fix editors not being able to create categories / tags
Remove debug::dump from tests
Hide options if not allowed to edit the blog
2015-03-25 15:24:40 +13:00
Damian Mooyman
27cc0f4261 Legacy class migration 2015-03-05 14:14:34 +13:00
micmania1
0ba513579f FIX Fixed permission to allow all blog editors tags and categories 2014-07-27 10:24:02 +01:00
micmania1
96e5a75db2 Added category tests 2014-03-23 14:40:53 +00:00
micmania1
f8eeb3b2e6 Added unit tests 2013-10-09 23:09:28 +01:00