Esempio n. 1
0
 /**
  * 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'));
 }
Esempio n. 2
0
 /**
  * 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')));
 }
Esempio n. 3
0
 /**
  * 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));
 }
Esempio n. 4
0
 /**
  * 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));
 }
Esempio n. 5
0
 /**
  * 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')));
 }
Esempio n. 6
0
 /**
  * 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')));
 }