Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
appendIndex example
$this
->
assertNull
(
$builder
->
getPropertyPath
(
)
)
;
}
public
function
testCreateCopyPath
(
)
{
$this
->
assertEquals
(
new
PropertyPath
(
self::PREFIX
)
,
$this
->builder->
getPropertyPath
(
)
)
;
}
public
function
testAppendIndex
(
)
{
$this
->builder->
appendIndex
(
'new1'
)
;
$path
=
new
PropertyPath
(
self::PREFIX.'[new1]'
)
;
$this
->
assertEquals
(
$path
,
$this
->builder->
getPropertyPath
(
)
)
;
}
public
function
testAppendProperty
(
)
{
$this
->builder->
appendProperty
(
'new1'
)
;
$path
=
new
PropertyPath
(
self::PREFIX.'.new1'
)
;