Skip to content

Commit

Permalink
Merge pull request #8 from nswdpc/ss5
Browse files Browse the repository at this point in the history
SS5
  • Loading branch information
JamesDPC authored Jul 26, 2024
2 parents 2882526 + 80dccb2 commit 71accad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 30 deletions.
8 changes: 3 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"authors": [
{
"name": "James Ellis",
"homepage": "https://dpc.nsw.gov.au",
"role": "Developer"
}
],
Expand All @@ -33,12 +32,11 @@
]
},
"require": {
"silverstripe/framework" : "^4.10.0",
"ezyang/htmlpurifier" : "^4.13"
"silverstripe/framework" : "^5",
"ezyang/htmlpurifier" : "^4.17"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"friendsofphp/php-cs-fixer": "^3",
"silverstripe/sqlite3": "^2"
"friendsofphp/php-cs-fixer": "^3"
}
}
22 changes: 0 additions & 22 deletions src/Fields/TrumboywgEditorField.php

This file was deleted.

6 changes: 3 additions & 3 deletions tests/FieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function testFieldContentSanitisation() {
"strike",
]
];
Config::inst()->update(
Config::modify()->set(
TrumboywgEditorField::class,
'editor_options',
$options
Expand Down Expand Up @@ -104,7 +104,7 @@ public function testFieldContentSanitisation() {
*/
public function testGenerateConfig() {
$tags = "<p><i><u><h2>";
Config::inst()->update(
Config::modify()->set(
ContentSanitiser::class,
'default_allowed_html_tags',
$tags
Expand All @@ -131,7 +131,7 @@ public function testGenerateConfig() {
*/
public function testEmptyConfig() {
$tags = "";
Config::inst()->update(
Config::modify()->set(
ContentSanitiser::class,
'default_allowed_html_tags',
$tags
Expand Down

0 comments on commit 71accad

Please sign in to comment.