/** * constructor * * @param EE_UnitTest_Factory $factory */ public function __construct($factory = null, $chained = false) { parent::__construct($factory); $this->_chained = $chained; //default args for creating prices $this->default_generation_definitions = array('PRT_name' => new WP_UnitTest_Generator_Sequence('%s Price Type')); }
/** * constructor * * @param EE_UnitTest_Factory $factory * @param bool $chained This indicates that we are chaining this datetime to an event (instead of creating a isolated Datetime). */ public function __construct($factory = null, $chained = false) { parent::__construct($factory); $this->_chained = $chained; //default args for creating datetimes $this->default_generation_definitions = array('DTT_name' => new WP_UnitTest_Generator_Sequence('Datetime %s'), 'DTT_description' => new WP_UnitTest_Generator_Sequence('Datetime Description %s'), 'DTT_EVT_start' => strtotime('+1 month'), 'DTT_EVT_end' => strtotime('+2 months')); }
/** * constructor * * @param EE_UnitTest_Factory $factory * @param bool $chained This indicates that we are chaining this registrations to related objects. */ public function __construct($factory = null, $chained = false) { parent::__construct($factory); $this->_chained = $chained; //default args for creating registrations $this->default_generation_definitions = array('REG_url_link' => new WP_UnitTest_Generator_Sequence('%s-' . md5(uniqid()))); }
/** * constructor * * @param EE_UnitTest_Factory $factory */ public function __construct($factory = null, $chained = false) { parent::__construct($factory); $this->_chained = $chained; //default args for creating prices $this->default_generation_definitions = array('PRC_name' => new WP_UnitTest_Generator_Sequence('Price %s'), 'PRC_desc' => new WP_UnitTest_Generator_Sequence('Price Description %s'), 'PRC_amount' => 0, 'PRT_name' => 'Base Price Type', 'PRC_type' => 'base', 'PRC_type_is_percent' => false, 'TKT_end_date' => strtotime('+2 months')); }
/** * constructor * * @param EE_UnitTest_Factory $factory * @param bool $chained */ public function __construct($factory = null, $chained = false) { parent::__construct($factory); $this->_chained = $chained; //default args for creating transactions $this->default_generation_definitions = array(); }
/** * constructor * * @param EE_UnitTest_Factory $factory */ public function __construct($factory = null, $chained = false) { parent::__construct($factory); $this->_chained = $chained; //default args for creating attendees $this->default_generation_definitions = array('ATT_fname' => 'Anonymous', 'ATT_lname' => new WP_UnitTest_Generator_Sequence('Llama %s'), 'ATT_address' => new WP_UnitTest_Generator_Sequence('%s Farm Lane'), 'ATT_city' => 'Some Town', 'ATT_zip' => new WP_UnitTest_Generator_Sequence('00000%s'), 'ATT_email' => new WP_UnitTest_Generator_Sequence('*****@*****.**'), 'ATT_phone' => new WP_UnitTest_Generator_Sequence('%s%s%s-%s%s%s-%s%s%s%s')); }
function __construct($factory = null) { parent::__construct($factory); $this->default_generation_definitions = array('domain' => WP_TESTS_DOMAIN, 'title' => new WP_UnitTest_Generator_Sequence('Network %s'), 'path' => new WP_UnitTest_Generator_Sequence('/testpath%s/'), 'network_id' => new WP_UnitTest_Generator_Sequence('%s', 2), 'subdomain_install' => false); }
public function __construct($factory = null) { parent::__construct($factory); }
public function __construct($factory = null) { parent::__construct($factory); //default args for creating events. $this->default_generation_definitions = array('EVT_name' => new WP_UnitTest_Generator_Sequence('Event %s'), 'EVT_desc' => new WP_UnitTest_Generator_Sequence('Event content %s'), 'EVT_short_desc' => new WP_UnitTest_Generator_Sequence('Event excerpt %s')); }
function __construct($factory = null) { parent::__construct($factory); $this->default_generation_definitions = array('user_id' => 0, 'item_id' => 0, 'type' => 'star', 'value' => ''); }
function __construct($factory) { parent::__construct($factory, array('location' => new WP_UnitTest_Generator_Sequence('www.test%s.com'))); }
function __construct($factory = null) { parent::__construct($factory); $this->default_generation_definitions = array('post_status' => 'publish', 'post_title' => new WP_UnitTest_Generator_Sequence('Post title %s'), 'post_content' => new WP_UnitTest_Generator_Sequence('Post content %s'), 'post_excerpt' => new WP_UnitTest_Generator_Sequence('Post excerpt %s'), 'post_type' => 'post'); }
public function __construct($factory = null) { parent::__construct($factory); //default args for creating events. $this->default_generation_definitions = array(); }
function __construct($factory = null) { global $current_site, $base; parent::__construct($factory); $this->default_generation_definitions = array('domain' => $current_site->domain, 'path' => new WP_UnitTest_Generator_Sequence($base . 'testpath%s'), 'title' => new WP_UnitTest_Generator_Sequence('Site %s'), 'site_id' => $current_site->id); }
/** * @param GF_UnitTest_Factory $factory */ function __construct($factory = null) { parent::__construct($factory); $this->default_generation_definitions = array('title' => new WP_UnitTest_Generator_Sequence('Form Title %s'), 'fields' => array(new GF_Field_Text(array('id' => 1, 'label' => 'Label for field one (text)', 'choices' => array(), 'inputs' => '')), new GF_Field_Hidden(array('id' => 2, 'label' => 'Label for field two (hidden)', 'choices' => array(), 'inputs' => '')), new GF_Field_Number(array('id' => 3, 'label' => 'Label for field three (number)', 'choices' => array(), 'inputs' => '')))); }
function __construct($factory = null) { parent::__construct($factory); $this->default_generation_definitions = array('item_title' => new WP_UnitTest_Generator_Sequence('Feed Item Title %s'), 'item_link' => new WP_UnitTest_Generator_Sequence('Feed Item link %s'), 'item_content' => new WP_UnitTest_Generator_Sequence('Feed Item content %s'), 'source_title' => new WP_UnitTest_Generator_Sequence('Feed Item source_title %s'), 'item_wp_date' => time(), 'sortable_item_date' => time()); }
function __construct($factory = null) { parent::__construct($factory); $this->default_generation_definitions = array('name' => new WP_UnitTest_Generator_Sequence('Group %s'), 'description' => new WP_UnitTest_Generator_Sequence('Group description %s'), 'slug' => new WP_UnitTest_Generator_Sequence('group-slug-%s'), 'status' => 'public', 'enable_forum' => true, 'date_created' => bp_core_current_time()); }
function __construct($factory = null) { parent::__construct($factory); $this->default_generation_definitions = array('post_status' => 'publish', 'post_title' => new WP_UnitTest_Generator_Sequence('Project title %s'), 'post_content' => new WP_UnitTest_Generator_Sequence('Project description %s'), 'post_type' => 'anth_project'); }
function __construct($factory = null) { parent::__construct($factory); $this->default_generation_definitions = array('comment_author' => new WP_UnitTest_Generator_Sequence('Commenter %s'), 'comment_author_url' => new WP_UnitTest_Generator_Sequence('http://example.com/%s/'), 'comment_approved' => 1, 'comment_content' => 'This is a comment'); }
function __construct($factory = null) { parent::__construct($factory); global $wpdb; $this->default_generation_definitions = array('item_key' => FrmAppHelper::get_unique_key('', $wpdb->prefix . 'frm_items', 'item_key'), 'name' => new WP_UnitTest_Generator_Sequence('Entry name %s')); }
public function __construct($factory = null) { parent::__construct($factory); $this->default_generation_definitions = array('user_id' => new WP_UnitTest_Generator_Sequence('%d'), 'item' => null, 'value' => new WP_UnitTest_Generator_Sequence('%d')); }
function __construct($factory = null) { parent::__construct($factory); $this->default_generation_definitions = array('user_login' => new WP_UnitTest_Generator_Sequence('User %s'), 'user_pass' => 'password', 'user_email' => new WP_UnitTest_Generator_Sequence('*****@*****.**')); }
public function __construct($factory = null) { parent::__construct($factory); $this->default_generation_definitions = array('post_content' => new WP_UnitTest_Generator_Sequence('Content of Reply %s')); }
function __construct($factory = null, $taxonomy = null) { parent::__construct($factory); $this->taxonomy = $taxonomy ? $taxonomy : self::DEFAULT_TAXONOMY; $this->default_generation_definitions = array('name' => new WP_UnitTest_Generator_Sequence('Term %s'), 'taxonomy' => $this->taxonomy, 'description' => new WP_UnitTest_Generator_Sequence('Term description %s')); }
public function __construct($factory = null) { parent::__construct($factory); $this->default_generation_definitions = array('link_name' => new WP_UnitTest_Generator_Sequence('Bookmark name %s'), 'link_url' => new WP_UnitTest_Generator_Sequence('Bookmark URL %s')); }