assertNotEmpty( \Elementor\Fonts::get_fonts() ); } public function test_getFontType() { $this->assertEquals( 'system', \Elementor\Fonts::get_font_type( 'Arial' ) ); $this->assertFalse( \Elementor\Fonts::get_font_type( 'NotFoundThisFont' ) ); } public function test_getFontByGroups() { $this->assertArrayHasKey( 'Arial', \Elementor\Fonts::get_fonts_by_groups( [ 'system' ] ) ); $this->assertArrayNotHasKey( 'Arial', \Elementor\Fonts::get_fonts_by_groups( [ 'googlefonts' ] ) ); } }