/** * Constructor. * * @since 1.0.0 * * @access public */ public function __construct() { parent::__construct(array('post_status' => 'publish', 'post_title' => new Sequence('Post title %s'), 'post_content' => new Sequence('Post content %s'), 'post_excerpt' => new Sequence('Post excerpt %s'), 'post_type' => 'post')); }
/** * Constructor. * * @since 1.0.0 * * @access public * @param string $taxonomy The taxonomy name. */ public function __construct($taxonomy = null) { $this->_taxonomy = $taxonomy ?: self::DEFAULT_TAXONOMY; parent::__construct(array('name' => new Sequence('Term %s'), 'taxonomy' => $this->_taxonomy, 'description' => new FakerSequence('paragraphs'))); }
/** * Constructor. * * @since 1.0.0 * * @access public */ public function __construct() { $faker = \Faker\Factory::create(); $domain = defined('WP_TESTS_DOMAIN') ? WP_TESTS_DOMAIN : $faker->domainName; parent::__construct(array('domain' => $domain, 'title' => new Sequence('Network %s'), 'path' => new Sequence('/testpath%s/'), 'network_id' => new Sequence('%s', 2), 'subdomain_install' => false)); }
/** * Constructor. * * @since 1.0.0 * * @access public * @global object $current_site The current site info. * @global string $base The current site base path. */ public function __construct() { global $current_site, $base; parent::__construct(array('domain' => $current_site->domain, 'path' => new Sequence($base . 'testpath%s'), 'title' => new FakerSequence('company'), 'site_id' => $current_site->id)); }
/** * Constructor. * * @since 1.0.0 * * @access public */ public function __construct() { parent::__construct(array('user_login' => new FakerSequence('name'), 'user_pass' => 'password', 'user_email' => new FakerSequence('email'))); }
/** * Constructor. * * @since 1.0.0 * * @access public */ public function __construct() { parent::__construct(array('comment_author' => new FakerSequence('name'), 'comment_author_url' => new FakerSequence('url'), 'comment_approved' => 1, 'comment_content' => new FakerSequence('sentences'))); }