Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
assertContextualLinksClickable example
// Ensure the links and forms are disabled using the defaults before the // layout is saved.
$this
->
assertLinksFormIframeNotInteractive
(
)
;
$page
->
pressButton
(
'Save layout'
)
;
$this
->
clickLink
(
'Manage layout'
)
;
// Ensure the links and forms are disabled using the defaults.
$this
->
assertLinksFormIframeNotInteractive
(
)
;
// Ensure contextual links were not disabled.
$this
->
assertContextualLinksClickable
(
)
;
$this
->
drupalGet
(
"{
$field_ui_prefix
}
/display/default"
)
;
$this
->
submitForm
(
[
'layout[allow_custom]' => TRUE
]
, 'Save'
)
;
$this
->
drupalGet
(
'node/1/layout'
)
;
// Ensure the links and forms are also disabled in using the override.
$this
->
assertLinksFormIframeNotInteractive
(
)
;
// Ensure contextual links were not disabled.
$this
->
assertContextualLinksClickable
(
)
;
}