Skip to content

Commit

Permalink
Merge branch 'master' into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io authored Oct 30, 2024
2 parents 5edfe2d + 0e288a9 commit f4677b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/src/MenuSettingsPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

it('has site site_social exists', function () {
$siteSettings = new \TomatoPHP\FilamentSettingsHub\Settings\SitesSettings;

assertDatabaseHas(\TomatoPHP\FilamentSettingsHub\Models\Setting::class, [
'name' => 'site_social',
'group' => 'sites',
Expand Down
3 changes: 2 additions & 1 deletion tests/src/SiteSettingsPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
actingAs(User::factory()->create());
});


function checkSiteSettingExists($setting, $name): void
{
assertDatabaseHas(\TomatoPHP\FilamentSettingsHub\Models\Setting::class, [
Expand All @@ -28,6 +29,7 @@ function checkSiteSettingExists($setting, $name): void
it('has site_description exists', function () {
$siteSettings = new \TomatoPHP\FilamentSettingsHub\Settings\SitesSettings;
checkSiteSettingExists($siteSettings, 'site_description');

});

it('has site_keywords exists', function () {
Expand All @@ -37,7 +39,6 @@ function checkSiteSettingExists($setting, $name): void

it('has site_phone exists', function () {
$siteSettings = new \TomatoPHP\FilamentSettingsHub\Settings\SitesSettings;

checkSiteSettingExists($siteSettings, 'site_phone');
});

Expand Down

0 comments on commit f4677b8

Please sign in to comment.