Test all the properties included in the response, like breadcrumbs, metatags, layout etc.
Example of how to perform get request and check response data can be found in LupusCeRendererContentTest::testDefaultContentFormat()

Comments

mostepaniukvm created an issue. See original summary.

ciprian.stavovei’s picture

Status: Active » Needs review
StatusFileSize
new2.99 KB
fago’s picture

Status: Needs review » Needs work

test case looks mostly good, but i don't think mink expectation exceptions should be used from within phpunit. it would probably work as an exception woudl break it, but it'S not the proper way of failing a test in phpunit.

check https://api.drupal.org/api/drupal/vendor%21phpunit%21phpunit%21src%21Fra... and related assertoin helpers.

ciprian.stavovei’s picture

StatusFileSize
new2.8 KB

I updated the patch according to feedback.

ciprian.stavovei’s picture

Status: Needs work » Needs review
mostepaniukvm’s picture

Status: Needs review » Needs work

@ciprian.stavovei looks good now. Minor fixes needed for indentation, phpcs is not happy

ciprian.stavovei’s picture

Status: Needs work » Needs review
StatusFileSize
new2.74 KB

Fixed the phpcs issues.

mostepaniukvm’s picture

Status: Needs review » Fixed

@ciprian.stavovei looks good now, committed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.