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

DEP PHP Support in CMS5 #278

Merged

Conversation

sabina-talipova
Copy link
Contributor

composer.json Outdated
"silverstripe/cms": "^5",
"silverstripe/admin": "^2",
"silverstripe/vendor-plugin": "^2",
"symbiote/silverstripe-gridfieldextensions": "^3.5",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"symbiote/silverstripe-gridfieldextensions": "^3.5",
"symbiote/silverstripe-gridfieldextensions": "^4",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DONE

@sabina-talipova sabina-talipova force-pushed the pulls/2/upgrade-cms5 branch 2 times, most recently from 11f8ae1 to 395ecc6 Compare December 21, 2022 01:24
@sabina-talipova sabina-talipova force-pushed the pulls/2/upgrade-cms5 branch 2 times, most recently from 4fe7065 to a683f80 Compare January 9, 2023 00:08
Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

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

Failing unit tests

@sabina-talipova
Copy link
Contributor Author

Created new issue for failed Behat tests #280

Copy link

@maxime-rainville maxime-rainville left a comment

Choose a reason for hiding this comment

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

Just need to fix the permission check.

@@ -24,15 +22,17 @@ protected function setUp(): void

public function testGetSchemaFromPageUrl()
{
$response = $this->get('animal-centers/schema');
$this->logInWithPermission('ADMIN');

Choose a reason for hiding this comment

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

Suggested change
$this->logInWithPermission('ADMIN');
$this->logInWithPermission('VIEW_DRAFT_CONTENT');

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DONE


$this->assertSame(200, $response->getStatusCode());
$this->assertJson($response->getBody());
}

public function testGetSchemaFromPageSubUrl()
{
$response = $this->get('animal-centers/view/123/schema');
$this->logInWithPermission('ADMIN');

Choose a reason for hiding this comment

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

Suggested change
$this->logInWithPermission('ADMIN');
$this->logInWithPermission('VIEW_DRAFT_CONTENT');

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DONE

Copy link

@maxime-rainville maxime-rainville left a comment

Choose a reason for hiding this comment

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

LGTM

@maxime-rainville maxime-rainville merged commit cd1e5dd into silverstripe:2 Jan 12, 2023
@maxime-rainville maxime-rainville deleted the pulls/2/upgrade-cms5 branch January 12, 2023 22:24
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.

3 participants