/** * Create a test textarea field * * @covers Yoast_GA_Admin_Form:select() */ public function test_textarea() { Yoast_GA_Admin_Form::create_form('phpunit'); $title = 'Test textarea'; $name = 'test_textarea'; $output = null; $output .= '<div class="ga-form ga-form-input"><label class="ga-form ga-form-select-label ga-form-label-left" id="yoast-ga-form-label-select-phpunit-ga_general_' . $name . '">'; $output .= $title . ':</label><textarea rows="5" cols="60" name="' . $name . '" id="yoast-ga-form-textarea-phpunit-ga_general_' . $name . '"></textarea></div>'; $this->assertEquals(Yoast_GA_Admin_Form::textarea($title, $name), $output); }
</a> <a class="nav-tab" id="customdimensions-tab" href="#top#customdimensions"><?php _e('Custom Dimensions', 'google-analytics-for-wordpress'); ?> </a> <?php do_action('yst_ga_custom_tabs-tab'); ?> <a class="nav-tab" id="debugmode-tab" href="#top#debugmode"><?php _e('Debug mode', 'google-analytics-for-wordpress'); ?> </a> </h2> <?php echo Yoast_GA_Admin_Form::create_form('settings'); ?> <input type="hidden" name="return_tab" id="return_tab" value="general" /> <div class="tabwrapper"> <div id="general" class="gatab"> <?php echo '<h2>' . __('General settings', 'google-analytics-for-wordpress') . '</h2>'; echo '<div id="ga-promote">'; $ga_class = Yoast_Google_Analytics::get_instance(); $wp_block_google = $ga_class->check_google_access_from_wp(); $check_google_access = $ga_class->check_google_access(); if ($wp_block_google && $check_google_access) { $profiles = Yoast_GA_Admin_Form::parse_optgroups($yoast_ga_admin->get_profiles()); $auth_url = Yoast_Google_Analytics::get_instance()->create_auth_url(); add_thickbox(); echo '<script>yst_thickbox_heading = "' . __('Paste your Google authentication code', 'google-analytics-for-wordpress') . '";</script>';