File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 22
33namespace Stackkit \LaravelGoogleCloudTasksQueue ;
44
5+ use Carbon \Carbon ;
56use Firebase \JWT \JWT ;
67use Firebase \JWT \SignatureInvalidException ;
78use GuzzleHttp \Client ;
@@ -53,7 +54,7 @@ public function getPublicKey($kid = null)
5354 $ v3Certs = Cache::get (self ::V3_CERTS );
5455 } else {
5556 $ v3Certs = $ this ->getv3Certs ();
56- Cache::put (self ::V3_CERTS , $ v3Certs , $ this ->maxAge [self ::URL_OPENID_CONFIG ]);
57+ Cache::put (self ::V3_CERTS , $ v3Certs , Carbon:: now ()-> addSeconds ( $ this ->maxAge [self ::URL_OPENID_CONFIG ]) );
5758 }
5859
5960 $ cert = $ kid ? collect ($ v3Certs )->firstWhere ('kid ' , '= ' , $ kid ) : $ v3Certs [0 ];
Original file line number Diff line number Diff line change 22
33namespace Tests ;
44
5+ use Illuminate \Support \Facades \Artisan ;
6+
57class TestCase extends \Orchestra \Testbench \TestCase
68{
79 /**
@@ -29,6 +31,11 @@ protected function getPackageProviders($app)
2931 */
3032 protected function getEnvironmentSetUp ($ app )
3133 {
34+ foreach (glob (storage_path ('framework/cache/data/*/*/* ' )) as $ file ) {
35+ unlink ($ file );
36+ }
37+
38+ $ app ['config ' ]->set ('cache.default ' , 'file ' );
3239 $ app ['config ' ]->set ('queue.default ' , 'cloudtasks ' );
3340 $ app ['config ' ]->set ('queue.connections.cloudtasks ' , [
3441 'driver ' => 'cloudtasks ' ,
You can’t perform that action at this time.
0 commit comments