summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-25 15:44:38 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-25 15:44:38 -0400
commit45b5e8b879c1135398790cf988434188aa062cd4 (patch)
tree61b4db2e7bda95141a17b9f86f414a46aed24fde /scripts
parent471736bf8c9304606f183cd6b688b1fae64eea70 (diff)
Add pagination for users page
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create-random-users.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/create-random-users.php b/scripts/create-random-users.php
new file mode 100755
index 00000000..47336c64
--- /dev/null
+++ b/scripts/create-random-users.php
@@ -0,0 +1,17 @@
+#!/usr/bin/env php
+<?php
+
+require __DIR__.'/../app/common.php';
+
+use Model\User;
+
+$userModel = new User($registry);
+
+for ($i = 0; $i < 500; $i++) {
+ $userModel->create(array(
+ 'username' => 'user'.$i,
+ 'password' => 'password'.$i,
+ 'name' => 'User #'.$i,
+ 'email' => 'user'.$i.'@localhost',
+ ));
+}