Skip to content

Commit

Permalink
Added: testGetDefaultSettings()
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan0sz committed May 17, 2024
1 parent 1e61cbb commit 48b9d1e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/integration/HelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace OMGF\Tests\Integration;

use OMGF\Admin\Settings;
use OMGF\Helper as OMGF;
use OMGF\Tests\TestCase;

Expand Down Expand Up @@ -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 );
}
}

0 comments on commit 48b9d1e

Please sign in to comment.