Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtronics committed Jul 7, 2024
1 parent 41bba62 commit 87b3d8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/Manager/SettingsCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,8 @@ public function testCacheableSettings(): void

//Embedded settings must not be filled
$this->assertFalse(isset($other->simpleSettings));

//Invalidate cache to prevent side-effects
$this->settingsCache->invalidateData($metadata);
}
}
4 changes: 3 additions & 1 deletion tests/Manager/SettingsRegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

use Jbtronics\SettingsBundle\Manager\SettingsRegistry;
use Jbtronics\SettingsBundle\Tests\TestApplication\Helpers\NonCloneableClass;
use Jbtronics\SettingsBundle\Tests\TestApplication\Settings\CacheableSettings;
use Jbtronics\SettingsBundle\Tests\TestApplication\Settings\EnvVarSettings;
use Jbtronics\SettingsBundle\Tests\TestApplication\Settings\GuessableSettings;
use Jbtronics\SettingsBundle\Tests\TestApplication\Settings\MergeableSettings;
Expand Down Expand Up @@ -60,7 +61,8 @@ public function testGetConfigClasses(): void
'embed' => EmbedSettings::class,
'envvar' => EnvVarSettings::class,
'mergeable' => MergeableSettings::class,
'noncloneable' => NonCloneableSettings::class
'noncloneable' => NonCloneableSettings::class,
'cacheable' => CacheableSettings::class
], $configurationRegistry->getSettingsClasses());
}

Expand Down

0 comments on commit 87b3d8a

Please sign in to comment.