Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
verifyForumView example
$response2
=
(
$admin
)
? 200 : 403;
// View forum help node.
$this
->
drupalGet
(
'admin/help/forum'
)
;
$this
->
assertSession
(
)
->
statusCodeEquals
(
$response2
)
;
if
(
$response2
== 200
)
{
$this
->
assertSession
(
)
->
titleEquals
(
'Forum | Drupal'
)
;
$this
->
assertSession
(
)
->
pageTextContains
(
'Forum'
)
;
}
// View forum container page.
$this
->
verifyForumView
(
$this
->forumContainer
)
;
// View forum page.
$this
->
verifyForumView
(
$this
->forum,
$this
->forumContainer
)
;
// View root forum page.
$this
->
verifyForumView
(
$this
->rootForum
)
;
// View forum node.
$this
->
drupalGet
(
'node/' .
$node
->
id
(
)
)
;
$this
->
assertSession
(
)
->
statusCodeEquals
(
200
)
;
$this
->
assertSession
(
)
->
titleEquals
(
$node
->
label
(
)
. ' | Drupal'
)
;
$breadcrumb_build
=
[
Link::
createFromRoute
(
'Home', '<front>'
)
,