Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
PropertyAccessorCollectionTestCase_CarOnlyAdder example
$this
->propertyAccessor->
setValue
(
$car
, 'axes',
$axesAfter
)
;
}
public
function
testIsWritableReturnsTrueIfAdderAndRemoverExists
(
)
{
$car
=
new
PropertyAccessorCollectionTestCase_Car
(
)
;
$this
->
assertTrue
(
$this
->propertyAccessor->
isWritable
(
$car
, 'axes'
)
)
;
}
public
function
testIsWritableReturnsFalseIfOnlyAdderExists
(
)
{
$car
=
new
PropertyAccessorCollectionTestCase_CarOnlyAdder
(
)
;
$this
->
assertFalse
(
$this
->propertyAccessor->
isWritable
(
$car
, 'axes'
)
)
;
}
public
function
testIsWritableReturnsFalseIfOnlyRemoverExists
(
)
{
$car
=
new
PropertyAccessorCollectionTestCase_CarOnlyRemover
(
)
;
$this
->
assertFalse
(
$this
->propertyAccessor->
isWritable
(
$car
, 'axes'
)
)
;
}
public
function
testIsWritableReturnsFalseIfNoAdderNorRemoverExists
(
)
{