function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vidys SagarVidys Sagar 

i need test class for this class

@RestResource(urlMapping='/getlogo/*')
Global with sharing class GetLogo {

    @HttpGet
    Global static String getCompanyLogo()
    {
        StaticResource sr = [SELECT Id, Body FROM StaticResource WHERE Name = 'DNOWLogo' LIMIT 1];
    String body = sr.Body.toString();
        return body;
    }
    
}