Код: Выделить всё
$arrayCollection = $this->getMockBuilder(ArrayCollection::class)
->setConstructorArgs([
[$entity]
])
->getMock();
У кого-нибудь есть идеи?
Подробнее здесь: https://stackoverflow.com/questions/790 ... turns-null
Код: Выделить всё
$arrayCollection = $this->getMockBuilder(ArrayCollection::class)
->setConstructorArgs([
[$entity]
])
->getMock();