mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-19 11:45:01 +00:00
backend language strings updates
This commit is contained in:
@@ -110,12 +110,12 @@ class UserSubscriptionTest extends TestCase
|
||||
$usages = collect([
|
||||
[
|
||||
'feature' => 'bandwidth',
|
||||
'amount' => 7546.96,
|
||||
'usage' => 26024,
|
||||
'amount' => 7.54696,
|
||||
'usage' => 2.6024,
|
||||
], [
|
||||
'feature' => 'storage',
|
||||
'amount' => 476.28,
|
||||
'usage' => 3969,
|
||||
'amount' => 0.47628,
|
||||
'usage' => 3.969,
|
||||
], [
|
||||
'feature' => 'flatFee',
|
||||
'amount' => 2.49,
|
||||
@@ -136,7 +136,7 @@ class UserSubscriptionTest extends TestCase
|
||||
'feature' => 'bandwidth',
|
||||
'amount' => 7.54696,
|
||||
'cost' => '$7.55',
|
||||
'usage' => '26.02GB',
|
||||
'usage' => '2.60GB',
|
||||
],
|
||||
'storage' => [
|
||||
'feature' => 'storage',
|
||||
|
||||
@@ -121,7 +121,7 @@ class BrowseTest extends TestCase
|
||||
],
|
||||
[
|
||||
'location' => 'shared-with-me',
|
||||
'name' => 'Shared With Me',
|
||||
'name' => 'Shared with Me',
|
||||
'folders' => [],
|
||||
'isMovable' => false,
|
||||
'isOpen' => false,
|
||||
|
||||
@@ -28,12 +28,12 @@ class AppUpgradeTest extends TestCase
|
||||
DB::table('language_translations')
|
||||
->insert([
|
||||
[
|
||||
'key' => 'activation.stripe.button',
|
||||
'value' => 'Set up your Stripe account',
|
||||
'key' => 'type',
|
||||
'value' => 'Type',
|
||||
'lang' => $locale,
|
||||
], [
|
||||
'key' => 'activation.stripe.description',
|
||||
'value' => 'This is original test description',
|
||||
'key' => 'cancel',
|
||||
'value' => 'Cancel',
|
||||
'lang' => $locale,
|
||||
],
|
||||
]);
|
||||
@@ -47,20 +47,14 @@ class AppUpgradeTest extends TestCase
|
||||
collect(['en', 'sk'])
|
||||
->map(function ($locale) {
|
||||
$this->assertDatabaseHas('language_translations', [
|
||||
'key' => 'activation.stripe.title',
|
||||
'value' => 'Your Stripe account is not set',
|
||||
'key' => 'close',
|
||||
'value' => 'Close',
|
||||
'lang' => $locale,
|
||||
]);
|
||||
|
||||
$this->assertDatabaseHas('language_translations', [
|
||||
'key' => 'activation.stripe.description',
|
||||
'value' => 'This is original test description',
|
||||
'lang' => $locale,
|
||||
]);
|
||||
|
||||
$this->assertDatabaseMissing('language_translations', [
|
||||
'key' => 'activation.stripe.description',
|
||||
'value' => 'To charge your users, please set up your Stripe account credentials.',
|
||||
'key' => 'create_folder',
|
||||
'value' => 'Create folder',
|
||||
'lang' => $locale,
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -72,12 +72,12 @@ class SchedulerTest extends TestCase
|
||||
->assertDatabaseHas('usages', [
|
||||
'metered_feature_id' => $plan->meteredFeatures()->get()[0]->id,
|
||||
'subscription_id' => $subscription->id,
|
||||
'quantity' => 125,
|
||||
'quantity' => 0.125,
|
||||
])
|
||||
->assertDatabaseHas('usages', [
|
||||
'metered_feature_id' => $plan->meteredFeatures()->get()[1]->id,
|
||||
'subscription_id' => $subscription->id,
|
||||
'quantity' => 410,
|
||||
'quantity' => 0.410,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user