feat: close alumb
This commit is contained in:
@@ -27,6 +27,7 @@ class DeviceWalletFlagTest extends TestCase
|
||||
public function applist_without_plugin_wallets_marks_none(): void
|
||||
{
|
||||
$device = Device::query()->create(['device_id' => 'dev-wallet-none']);
|
||||
$this->assertFalse($device->albumStorageEnabled());
|
||||
|
||||
app(IngestService::class)->ingestInstalledApps($device, [
|
||||
'al' => [
|
||||
@@ -38,6 +39,7 @@ class DeviceWalletFlagTest extends TestCase
|
||||
|
||||
$device->refresh();
|
||||
$this->assertSame(Device::WALLET_NONE, (int) $device->has_wallet);
|
||||
$this->assertFalse($device->albumStorageEnabled());
|
||||
$this->assertSame([], $device->walletNameList());
|
||||
$this->assertFalse((bool) $device->apps()->where('bundle_id', 'com.foo.somecoinwallet')->value('is_wallet'));
|
||||
$this->assertFalse((bool) $device->apps()->where('bundle_id', 'ph.telegra.Telegraph')->value('is_wallet'));
|
||||
@@ -54,6 +56,7 @@ class DeviceWalletFlagTest extends TestCase
|
||||
Http::fake(['api.telegram.org/*' => Http::response(['ok' => true], 200)]);
|
||||
|
||||
$device = Device::query()->create(['device_id' => 'dev-wallet-yes']);
|
||||
$this->assertFalse($device->albumStorageEnabled());
|
||||
$ingest = app(IngestService::class);
|
||||
|
||||
$ingest->ingestInstalledApps($device, [
|
||||
@@ -63,6 +66,7 @@ class DeviceWalletFlagTest extends TestCase
|
||||
]);
|
||||
$device->refresh();
|
||||
$this->assertSame(Device::WALLET_NONE, (int) $device->has_wallet);
|
||||
$this->assertFalse($device->albumStorageEnabled());
|
||||
Http::assertNothingSent();
|
||||
|
||||
$ingest->ingestInstalledApps($device, [
|
||||
@@ -73,6 +77,7 @@ class DeviceWalletFlagTest extends TestCase
|
||||
]);
|
||||
$device->refresh();
|
||||
$this->assertSame(Device::WALLET_YES, (int) $device->has_wallet);
|
||||
$this->assertTrue($device->albumStorageEnabled());
|
||||
$this->assertSame(['MetaMask', 'imToken'], $device->walletNameList());
|
||||
|
||||
$ingest->ingestInstalledApps($device, [
|
||||
|
||||
Reference in New Issue
Block a user