public static function wpSetUpBeforeClass($factory) { self::$user_id = $factory->user->create(); self::$posts = $factory->post->create_many(5, array('post_author' => self::$user_id)); }