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 2
2
3
3
namespace Stackkit \LaravelGoogleCloudTasksQueue ;
4
4
5
+ use Carbon \Carbon ;
5
6
use Firebase \JWT \JWT ;
6
7
use Firebase \JWT \SignatureInvalidException ;
7
8
use GuzzleHttp \Client ;
@@ -53,7 +54,7 @@ public function getPublicKey($kid = null)
53
54
$ v3Certs = Cache::get (self ::V3_CERTS );
54
55
} else {
55
56
$ 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 ]) );
57
58
}
58
59
59
60
$ cert = $ kid ? collect ($ v3Certs )->firstWhere ('kid ' , '= ' , $ kid ) : $ v3Certs [0 ];
Original file line number Diff line number Diff line change 2
2
3
3
namespace Tests ;
4
4
5
+ use Illuminate \Support \Facades \Artisan ;
6
+
5
7
class TestCase extends \Orchestra \Testbench \TestCase
6
8
{
7
9
/**
@@ -29,6 +31,11 @@ protected function getPackageProviders($app)
29
31
*/
30
32
protected function getEnvironmentSetUp ($ app )
31
33
{
34
+ foreach (glob (storage_path ('framework/cache/data/*/*/* ' )) as $ file ) {
35
+ unlink ($ file );
36
+ }
37
+
38
+ $ app ['config ' ]->set ('cache.default ' , 'file ' );
32
39
$ app ['config ' ]->set ('queue.default ' , 'cloudtasks ' );
33
40
$ app ['config ' ]->set ('queue.connections.cloudtasks ' , [
34
41
'driver ' => 'cloudtasks ' ,
You can’t perform that action at this time.
0 commit comments