FIX Ensure page has extension before calling method #101
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue silverstripe/.github#199
Fixes https://github.com/silverstripe/recipe-kitchen-sink/actions/runs/8058976456/job/22012645584?pr=55#step:12:73 on silverstripe/recipe-kitchen-sink#55
1) DNADesign\ElementalUserForms\Tests\ElementFormControllerTest::testElementFormRendering BadMethodCallException: Object->__call(): the method 'getSiteRSSLink' does not exist on 'SilverStripe\UserForms\Control\UserDefinedFormController'
Happened because we removed the cwp versionfeed config which disabled versionfeed.
The elemental userforms tests has the controller extension appied by not the page extension appied, so have just added a little defensive programming here to resolve. It's required for a cms 6 build though may as well fix for 4.13