/**
  * Test WP_Customize_Selective_Refresh::add_dynamic_partials().
  *
  * @see WP_Customize_Selective_Refresh::add_dynamic_partials()
  */
 function test_add_dynamic_partials()
 {
     $partial_ids = array('recognized', 'recognized-class', 'unrecognized', 'already-added');
     $partials = $this->selective_refresh->add_dynamic_partials($partial_ids);
     $this->assertEmpty($partials);
     $this->selective_refresh->add_partial('already-added');
     add_filter('customize_dynamic_partial_args', array($this, 'filter_customize_dynamic_partial_args'), 10, 2);
     add_filter('customize_dynamic_partial_class', array($this, 'filter_customize_dynamic_partial_class'), 10, 3);
     $partials = $this->selective_refresh->add_dynamic_partials($partial_ids);
     $this->assertEqualSets(array('recognized', 'recognized-class'), wp_list_pluck($partials, 'id'));
     $this->assertInstanceOf('Tested_Custom_Partial', $this->selective_refresh->get_partial('recognized-class'));
     $this->assertNotInstanceOf('Tested_Custom_Partial', $this->selective_refresh->get_partial('recognized'));
     $this->assertEquals('.recognized', $this->selective_refresh->get_partial('recognized')->selector);
 }