diff --git a/tests/integration/HelperTest.php b/tests/integration/HelperTest.php index dd4ba0b..2b296e3 100644 --- a/tests/integration/HelperTest.php +++ b/tests/integration/HelperTest.php @@ -5,6 +5,7 @@ namespace OMGF\Tests\Integration; +use OMGF\Admin\Settings; use OMGF\Helper as OMGF; use OMGF\Tests\TestCase; @@ -99,4 +100,18 @@ public function testDelete() { $this->assertFileDoesNotExist( OMGF_UPLOAD_DIR . '/test/test.log' ); $this->assertDirectoryDoesNotExist( OMGF_UPLOAD_DIR . '/test/' ); } + + /** + * @see Helper::get_settings() + * @return void + */ + public function testGetDefaultSettings() { + $subsets = OMGF::get_option( Settings::OMGF_ADV_SETTING_SUBSETS ); + + $this->assertEquals( [ 'latin', 'latin-ext' ], $subsets ); + + $font_display = OMGF::get_option( Settings::OMGF_OPTIMIZE_SETTING_DISPLAY_OPTION ); + + $this->assertEquals( 'swap', $font_display ); + } }