bearer token for php unit test

Sofiya02
Shopify Partner
4 0 1

Hi Folks,

 

need to know the format for bearer token in order to write UT for saving meta field for Shopify php apps.
 
Sample :
 
public function saveDetails(Request $request)
{
$session = $request->get('shopifySession');
$accessToken = $session->getAccessToken();
}
need to pass 'shopifySession' in request for expected value, however not sure the format for which UT is failing
 
authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczpcL1wvc29maXlhMDIubXlzaG9waWZ5LmNvbVwvYWRtaW4iLCJkZXN0IjoiaHR0cHM6XC9cL3NvZml5YTAyLm15c2hvcGlmeS5jb20iLCJhdWQiOiI2NTBmMWExNGZhOTc5ZWM1Yzc0ZDA2M2U5Njg0MTFkNCIsInN1YiI6IjgwOTMyMzA3MTIxIiwiZXhwIjoxNjc2NTEyMTM3LCJuYmYiOjE2NzY1MTIwNzcsImlhdCI6MTY3NjUxMjA3NywianRpIjoiMjg5MGM1ZjctYTcyZS00ODgzLWFhNmUtOWUzNzAyNDcyMTY1Iiwic2lkIjoiNjdlN2UwYzU3MjA1YTc1NzdmOWRhNmZmZGE2MDhkMzRhZjUxOWY3ZmJlZmQ5MDY1MGEzNDFiZTQ5NzY2YWQ0NCJ9.AiH2-GN824cPNOqNSlAOSIpysKZ9zKWWbdevtAJrBv8
 
Replies 0 (0)