Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Stop using deprecated API #2794

Merged

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Nov 2, 2022

@@ -12,8 +12,6 @@ class MigrateSiteTreeLinkingTaskTest extends SapphireTest
{
protected static $fixture_file = 'MigrateSiteTreeLinkingTaskTest.yml';

protected static $use_draft_site = true;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed because FunctionalTest::use_draft_site is deprecated. This never actually needed to be set true for the unit test to pass.

@emteknetnz emteknetnz force-pushed the pulls/4/stop-depr branch 6 times, most recently from 0f593fa to 44411c6 Compare November 8, 2022 23:49
@@ -25,6 +25,7 @@
"silverstripe/reports": "^4.7@dev",
"silverstripe/siteconfig": "^4.7@dev",
"silverstripe/versioned": "^1.7@dev",
"silverstripe/versioned-admin": "^1.7@dev",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required to get CMS page history to work since we've migrated from the deprecated CMS class to the class in versioned-admin

@@ -30,7 +30,7 @@
class ZZZSearchFormTest extends FunctionalTest
{

protected static $fixture_file = 'SearchFormTest.yml';
protected static $fixture_file = 'ZZZSearchFormTest.yml';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed to remove the warning that the filename did not match the class name

@emteknetnz emteknetnz marked this pull request as ready for review November 9, 2022 01:25
@emteknetnz emteknetnz force-pushed the pulls/4/stop-depr branch 2 times, most recently from 815a556 to f031025 Compare November 15, 2022 04:41
@sabina-talipova
Copy link
Contributor

Require silverstripe/silverstripe-framework#10565 to be merged.

@sabina-talipova
Copy link
Contributor

@emteknetnz
Copy link
Member Author

@sabina-talipova green now

@sabina-talipova sabina-talipova merged commit 113f4e9 into silverstripe:4 Nov 16, 2022
@sabina-talipova sabina-talipova deleted the pulls/4/stop-depr branch November 16, 2022 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants