protected function setMockCategoriesService()
{
$mockCategoriesService = $this->getMockBuilder('Craft\\CategoriesService')->disableOriginalConstructor()->getMock();
$mockCategoriesService->expects($this->any())->method('getGroupLocales')->willReturn(array());
$this->setComponent(craft(), 'categories', $mockCategoriesService);
}