Please concat your string on the same line and don't hesitate to air yourcode to be more readable.
$categoryMappingManager
    ->registerCategoryMapping($category, 12, 'bar'. MagentoSoapClientParameters::SOAP_WSDL_URL)
    ->shouldBeCalled();