private IdsCollection
$ids;
private MockObject
$cacheInvalidatorMock;
private CacheInvalidationSubscriber
$cacheInvalidationSubscriber;
protected function setUp(): void
{ $this->ids =
new IdsCollection();
$this->cacheInvalidatorMock =
$this->
createMock(CacheInvalidator::
class);
$this->cacheInvalidationSubscriber =
new CacheInvalidationSubscriber( $this->cacheInvalidatorMock,
$this->
getContainer()->
get(Connection::
class),
false,
false
);
} public function testItInvalidatesCacheIfPropertyGroupIsChanged(): void
{ $this->
insertDefaultPropertyGroup();