diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e4aa080 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,7 @@ +name: Run phpunit test suite + +on: [push, pull_request] + +jobs: + uneditable: + uses: juzaweb/actions/.github/workflows/plugin-test.yml@main \ No newline at end of file diff --git a/helpers/helpers.php b/helpers/helpers.php index cd7462d..44d2857 100644 --- a/helpers/helpers.php +++ b/helpers/helpers.php @@ -7,6 +7,7 @@ if (!function_exists('has_subscription')) { function has_subscription(User $user, string $module): ?UserSubscription { + return null; return UserSubscription::with(['plan' => fn($q) => $q->cacheFor(3600)]) ->where(['module' => $module]) ->whereUserId($user->id) diff --git a/src/resources/views/backend/plan/components/form/features.blade.php b/src/resources/views/backend/plan/components/form/features.blade.php index a6c3b79..c45d02d 100644 --- a/src/resources/views/backend/plan/components/form/features.blade.php +++ b/src/resources/views/backend/plan/components/form/features.blade.php @@ -16,6 +16,7 @@