/** * The Envato_Market_Items Instance * * Ensures only one instance of this class exists in memory at any one time. * * @see Envato_Market_Github() * @uses Envato_Market_Github::init_actions() Setup hooks and actions. * * @since 1.0.0 * @static * @return object The one true Envato_Market_Github. * @codeCoverageIgnore */ public static function instance() { if (is_null(self::$_instance)) { self::$_instance = new self(); self::$_instance->init_actions(); } return self::$_instance; }
/** * @see Envato_Market_Github::notice() */ function test_notice_install() { update_option('envato_market_state', 'install'); ob_start(); set_current_screen('plugins'); $this->github->notice(); $buffer = ob_get_clean(); $this->assertContains('Install the Envato Market plugin', $buffer); }