function test_get_all() { WDS_Shortcode_Instances::add(new WDS_Shortcode('sc2', array(), 'content')); $shortcode_objects = WDS_Shortcode_Instances::get_all(); $this->assertTrue(is_array($shortcode_objects)); $this->assertEquals(2, count($shortcode_objects)); }