protected function setMockTagsService(MockObject $mockTag)
{
$tagsService = $this->getMockBuilder('Craft\\TagsService')->disableOriginalConstructor()->getMock();
$tagsService->expects($this->any())->method('saveTag')->with($mockTag)->willReturn(true);
$this->setComponent(craft(), 'tags', $tagsService);
}