public static function wpSetUpBeforeClass( $factory ) {
		self::$user_id = $factory->user->create( array(
			'role'       => 'author',
			'user_login' => 'test_wp_user_get',
			'user_pass'  => 'password',
			'user_email' => '*****@*****.**',
		) );

		self::$post_id = $factory->post->create( array(
			'post_author' => self::$user_id
		) );
	}
Esempio n. 2
0
 public static function wpSetUpBeforeClass($factory)
 {
     self::$user_id = $factory->user->create();
     self::$post_id = $factory->post->create(array('post_author' => self::$user_id));
 }