public function setUp()
{
$this->contextFactory = new ContextFactory();
$this->inject($this->contextFactory, 'now', new \Neos\Flow\Utility\Now());
$this->inject($this->contextFactory, 'securityContext', $this->createMock(Context::class));
$mockContentDimensionRepository = $this->createMock(ContentDimensionRepository::class);
$mockContentDimensionRepository->expects($this->any())->method('findAll')->will($this->returnValue(array()));
$this->inject($this->contextFactory, 'contentDimensionRepository', $mockContentDimensionRepository);
}