protected function getContentGatewayMock() { if (!isset($this->contentGatewayMock)) { $this->contentGatewayMock = $this->getMock('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Gateway'); } return $this->contentGatewayMock; }