File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 99 )->toBeString ();
1010});
1111
12- it ('can generate webhook verification key ' , function () {
12+ it ('can request webhook verification key ' , function () {
1313 expect (VivaWallet::requestWebhookKey ())->toBeString ();
1414});
Original file line number Diff line number Diff line change 11<?php
22
3- use Deyjandi \VivaWallet \Helpers \ClientAuth ;
43use Deyjandi \VivaWallet \VivaWalletToken ;
54use Illuminate \Support \Carbon ;
65
7- it (
8- 'can make auth header ' ,
9- fn () => expect (ClientAuth::token (VivaWalletToken::getInstance ()))->toBeString ()
10- );
6+ it ('can issue auth token ' , function () {
7+ expect (VivaWalletToken::getInstance ())->toBeString ();
8+ });
119
12- it ('can hit and expire from cache ' , function () {
10+ it ('can hit cache ' , function () {
1311 $ token = VivaWalletToken::getInstance ();
1412
1513 expect (cache ('viva_wallet_token ' ))->toEqual ($ token );
14+ });
15+
16+ it ('can expire from cache ' , function () {
17+ $ token = VivaWalletToken::getInstance ();
1618
1719 Carbon::setTestNow (now ()->addSeconds ($ token ->getExpiresIn ()));
1820
You can’t perform that action at this time.
0 commit comments