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