protected function getGatewayMock() { if (!isset($this->gatewayMock)) { $this->gatewayMock = $this->getMockForAbstractClass('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Type\\Gateway'); } return $this->gatewayMock; }