Changeset View
Changeset View
Standalone View
Standalone View
src/tests/TestCaseTrait.php
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | trait TestCaseTrait | ||||
/** | /** | ||||
* Removes all beta entitlements from the database | * Removes all beta entitlements from the database | ||||
*/ | */ | ||||
protected function clearBetaEntitlements(): void | protected function clearBetaEntitlements(): void | ||||
{ | { | ||||
$beta_handlers = [ | $beta_handlers = [ | ||||
'App\Handlers\Beta', | 'App\Handlers\Beta', | ||||
'App\Handlers\Beta\Distlists', | |||||
'App\Handlers\Beta\Resources', | |||||
'App\Handlers\Beta\SharedFolders', | |||||
]; | ]; | ||||
$betas = Sku::whereIn('handler_class', $beta_handlers)->pluck('id')->all(); | $betas = Sku::whereIn('handler_class', $beta_handlers)->pluck('id')->all(); | ||||
\App\Entitlement::whereIn('sku_id', $betas)->delete(); | \App\Entitlement::whereIn('sku_id', $betas)->delete(); | ||||
} | } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 494 Lines • Show Last 20 Lines |