Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getPID example
$this
->
assertTrue
(
ctype_lower
(
ltrim
(
$edit
[
'alias[0][value]'
]
, '/'
)
)
)
;
$this
->
drupalGet
(
$edit
[
'alias[0][value]'
]
)
;
// Lower case.
$this
->
assertSession
(
)
->
pageTextContains
(
$node1
->
label
(
)
)
;
$this
->
assertSession
(
)
->
statusCodeEquals
(
200
)
;
$this
->
drupalGet
(
mb_strtoupper
(
$edit
[
'alias[0][value]'
]
)
)
;
// Upper case.
$this
->
assertSession
(
)
->
pageTextContains
(
$node1
->
label
(
)
)
;
$this
->
assertSession
(
)
->
statusCodeEquals
(
200
)
;
// Change alias to one containing "exotic" characters.
$pid
=
$this
->
getPID
(
$edit
[
'alias[0][value]'
]
)
;
$previous
=
$edit
[
'alias[0][value]'
]
;
// Lower-case letters.
$edit
[
'alias[0][value]'
]
= '/alias' .
// "Special" ASCII characters. "- ._~!$'\"()*@[]?&+%#,;=:" .
// Characters that look like a percent-escaped string. "%23%25%26%2B%2F%3F" .
// Characters from various non-ASCII alphabets. "中國書۞";
$connection
= Database::
getConnection
(
)
;