Changeset 35225 for trunk/tests/phpunit/tests/user/countUsers.php
- Timestamp:
- 10/16/2015 09:04:12 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/user/countUsers.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/countUsers.php
r34965 r35225 18 18 19 19 // Setup users 20 $admin = $this->factory->user->create( array(20 $admin = self::$factory->user->create( array( 21 21 'role' => 'administrator', 22 22 ) ); 23 $editor = $this->factory->user->create( array(23 $editor = self::$factory->user->create( array( 24 24 'role' => 'editor', 25 25 ) ); 26 $author = $this->factory->user->create( array(26 $author = self::$factory->user->create( array( 27 27 'role' => 'author', 28 28 ) ); 29 $contributor = $this->factory->user->create( array(29 $contributor = self::$factory->user->create( array( 30 30 'role' => 'contributor', 31 31 ) ); 32 $subscriber = $this->factory->user->create( array(32 $subscriber = self::$factory->user->create( array( 33 33 'role' => 'subscriber', 34 34 ) ); 35 $none = $this->factory->user->create( array(35 $none = self::$factory->user->create( array( 36 36 'role' => '', 37 37 ) ); 38 $nobody = $this->factory->user->create( array(38 $nobody = self::$factory->user->create( array( 39 39 'role' => '', 40 40 ) ); … … 68 68 69 69 // Setup users 70 $admin = $this->factory->user->create( array(70 $admin = self::$factory->user->create( array( 71 71 'role' => 'administrator', 72 72 ) ); 73 $editor = $this->factory->user->create( array(73 $editor = self::$factory->user->create( array( 74 74 'role' => 'editor', 75 75 ) ); 76 $author = $this->factory->user->create( array(76 $author = self::$factory->user->create( array( 77 77 'role' => 'author', 78 78 ) ); 79 $contributor = $this->factory->user->create( array(79 $contributor = self::$factory->user->create( array( 80 80 'role' => 'contributor', 81 81 ) ); 82 $subscriber = $this->factory->user->create( array(82 $subscriber = self::$factory->user->create( array( 83 83 'role' => 'subscriber', 84 84 ) ); 85 $none = $this->factory->user->create( array(85 $none = self::$factory->user->create( array( 86 86 'role' => '', 87 87 ) ); 88 $nobody = $this->factory->user->create( array(88 $nobody = self::$factory->user->create( array( 89 89 'role' => '', 90 90 ) ); 91 91 92 92 // Setup blogs 93 $blog_1 = (int) $this->factory->blog->create( array(93 $blog_1 = (int) self::$factory->blog->create( array( 94 94 'user_id' => $editor, 95 95 ) ); 96 $blog_2 = (int) $this->factory->blog->create( array(96 $blog_2 = (int) self::$factory->blog->create( array( 97 97 'user_id' => $author, 98 98 ) );
Note: See TracChangeset
for help on using the changeset viewer.