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 Update code to reflect changes to LeftAndMain #376

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Controllers/CMSPageHistoryViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use SilverStripe\CMS\Controllers\CMSMain;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\Form;
use SilverStripe\Forms\HiddenField;
use SilverStripe\VersionedAdmin\Forms\HistoryViewerField;

Expand All @@ -29,7 +30,7 @@ class CMSPageHistoryViewerController extends CMSMain

private static $ignore_menuitem = true;

public function getEditForm($id = null, $fields = null)
public function getEditForm($id = null, $fields = null): Form
{
$record = $this->getRecord($id ?: $this->currentRecordID());

Expand Down
1 change: 0 additions & 1 deletion tests/Behat/features/compare-mode.feature
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ Feature: Compare mode
Given I click on "Content" in the header tabs
Then I fill in the "Content" HTML field with "<p>Hello universe</p>"
And I press the "Save" button
And I wait 3 seconds
And I click on the ".toast__close" element
And I click on "History" in the header tabs
And I wait for 3 seconds
Expand Down
6 changes: 3 additions & 3 deletions tests/Behat/features/list-view.feature
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Feature: View a list of versions
When I fill in the "Content" HTML field with "<p>Publish scenario</p>"
And I press the "Publish" button
And I wait 3 seconds
Then I should see a "Published 'Home' successfully." success toast
Then I should see a "Published Page "Home"" success toast
When I click on the ".toast__close" element
And I click on "History" in the header tabs
And I wait for 3 seconds
Expand All @@ -40,7 +40,7 @@ Feature: View a list of versions
When I fill in the "Content" HTML field with "<p>Save scenario</p>"
And I press the "Save" button
And I wait 3 seconds
Then I should see a "Saved 'Home' successfully." success toast
Then I should see a "Saved Page "Home"" success toast
When I click on the ".toast__close" element
And I click on "History" in the header tabs
And I wait for 3 seconds
Expand All @@ -55,7 +55,7 @@ Feature: View a list of versions
When I fill in the "Content" HTML field with "<p>Order scenario</p>"
And I press the "Publish" button
And I wait 3 seconds
Then I should see a "Published 'Home' successfully." success toast
Then I should see a "Published Page "Home"" success toast
When I click on the ".toast__close" element
And I click on "History" in the header tabs
And I wait for 3 seconds
Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/features/restore-to-draft.feature
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Feature: Restore to draft
Then I press the "Restore to draft" button
Then I should see "Successfully restored the page" in the "#Form_EditForm" element
When I go to "/admin/pages"
And I should see "MyPage" in the ".cms-tree [data-pagetype='Page']:nth-of-type(2).status-addedtodraft" element
And I should see "MyPage" in the ".cms-tree [data-recordtype='Page']:nth-of-type(2).status-addedtodraft" element
Loading