Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Replaced onSyncingQuotas with resolveQuotasSync
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed May 11, 2021
1 parent 5b712ec commit 7fd3f28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BillingPortal.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class BillingPortal
* @param \Closure $callback
* @return void
*/
public static function onSyncingQuotas(Closure $callback)
public static function resolveQuotasSync(Closure $callback)
{
static::$syncQuotasCallback = $callback;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/SubscriptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function test_syncing_quotas()

$synced = false;

BillingPortal::onSyncingQuotas(function ($user, $subscription) use (&$synced) {
BillingPortal::resolveQuotasSync(function ($user, $subscription) use (&$synced) {
$this->assertTrue($subscription->user->is($user));

$synced = true;
Expand Down

0 comments on commit 7fd3f28

Please sign in to comment.