<commit_before><?php

class Test_Kirki_Add_Panel extends WP_UnitTestCase {

	public $wp_customize;

	function setUp() {
		parent::setUp();
		require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
		// @codingStandardsIgnoreStart
		$GLOBALS['wp_customize'] = new WP_Customize_Manager();
		// @codingStandardsIgnoreEnd
		$this->wp_customize = $GLOBALS['wp_customize'];
	}

	public function test_add_panel() {

		Kirki::add_panel( 'test_empty', array() );
		Kirki::add_panel( 'test', array(
			'priority'    => 4,
			'title'       => 'Title',
			'description' => 'My Description',
		) );

		$this->assertEquals(
			array(
				'id'              => 'test_empty',
				'description'     => '',
				'priority'        => 10,
				'active_callback' => '__return_true',
			),
			Kirki::$panels['test_empty']
		);
		$this->assertEquals(
			array(
				'id'              => 'test',
				'title'           => 'Title',
				'description'     => 'My Description',
				'priority'        => '4',
				'active_callback' => '__return_true',
			),
			Kirki::$panels['test']
		);
		$this->assertEquals( 2, count( Kirki::$panels ) );
	}
}<commit_msg>Added type argument to panels tests<commit_after><?php

class Test_Kirki_Add_Panel extends WP_UnitTestCase {

	public $wp_customize;

	function setUp() {
		parent::setUp();
		require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
		// @codingStandardsIgnoreStart
		$GLOBALS['wp_customize'] = new WP_Customize_Manager();
		// @codingStandardsIgnoreEnd
		$this->wp_customize = $GLOBALS['wp_customize'];
	}

	public function test_add_panel() {

		Kirki::add_panel( 'test_empty', array() );
		Kirki::add_panel( 'test', array(
			'priority'    => 4,
			'title'       => 'Title',
			'description' => 'My Description',
		) );

		$this->assertEquals(
			array(
				'id'              => 'test_empty',
				'description'     => '',
				'priority'        => 10,
				'active_callback' => '__return_true',
				'type'            => 'default',
			),
			Kirki::$panels['test_empty']
		);
		$this->assertEquals(
			array(
				'id'              => 'test',
				'title'           => 'Title',
				'description'     => 'My Description',
				'priority'        => '4',
				'active_callback' => '__return_true',
				'type'            => 'default',
			),
			Kirki::$panels['test']
		);
		$this->assertEquals( 2, count( Kirki::$panels ) );
	}
}
{'fraction_non_alphanumeric': 0.17751479289940827, 'fraction_numerical': 0.00422654268808115, 'mean_word_length': 2.893092105263158, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2206256', 'n_tokens_mistral': 958, 'n_tokens_neox': 824, 'n_words': 139}