Test Setup Failed
Pull Request — master (#216)
by Viruthagiri
05:38
created
tests/lib/wordpress-tests-lib/includes/factory.php 1 patch
Doc Comments   +25 added lines patch added patch discarded remove patch
@@ -64,6 +64,9 @@  discard block
 block discarded – undo
64 64
 
65 65
 class WP_UnitTest_Factory_For_Post extends WP_UnitTest_Factory_For_Thing {
66 66
 
67
+	/**
68
+	 * @param WP_UnitTest_Factory $factory
69
+	 */
67 70
 	function __construct( $factory = null ) {
68 71
 		parent::__construct( $factory );
69 72
 		$this->default_generation_definitions = array(
@@ -127,6 +130,9 @@  discard block
 block discarded – undo
127 130
 
128 131
 class WP_UnitTest_Factory_For_User extends WP_UnitTest_Factory_For_Thing {
129 132
 
133
+	/**
134
+	 * @param WP_UnitTest_Factory $factory
135
+	 */
130 136
 	function __construct( $factory = null ) {
131 137
 		parent::__construct( $factory );
132 138
 		$this->default_generation_definitions = array(
@@ -152,6 +158,9 @@  discard block
 block discarded – undo
152 158
 
153 159
 class WP_UnitTest_Factory_For_Comment extends WP_UnitTest_Factory_For_Thing {
154 160
 
161
+	/**
162
+	 * @param WP_UnitTest_Factory $factory
163
+	 */
155 164
 	function __construct( $factory = null ) {
156 165
 		parent::__construct( $factory );
157 166
 		$this->default_generation_definitions = array(
@@ -183,6 +192,9 @@  discard block
 block discarded – undo
183 192
 
184 193
 class WP_UnitTest_Factory_For_Blog extends WP_UnitTest_Factory_For_Thing {
185 194
 
195
+	/**
196
+	 * @param WP_UnitTest_Factory $factory
197
+	 */
186 198
 	function __construct( $factory = null ) {
187 199
 		global $current_site, $base;
188 200
 		parent::__construct( $factory );
@@ -219,6 +231,9 @@  discard block
 block discarded – undo
219 231
 
220 232
 class WP_UnitTest_Factory_For_Network extends WP_UnitTest_Factory_For_Thing {
221 233
 
234
+	/**
235
+	 * @param WP_UnitTest_Factory $factory
236
+	 */
222 237
 	function __construct( $factory = null ) {
223 238
 		parent::__construct( $factory );
224 239
 		$this->default_generation_definitions = array(
@@ -255,6 +270,10 @@  discard block
 block discarded – undo
255 270
 	private $taxonomy;
256 271
 	const DEFAULT_TAXONOMY = 'post_tag';
257 272
 
273
+	/**
274
+	 * @param WP_UnitTest_Factory $factory
275
+	 * @param string $taxonomy
276
+	 */
258 277
 	function __construct( $factory = null, $taxonomy = null ) {
259 278
 		parent::__construct( $factory );
260 279
 		$this->taxonomy = $taxonomy ? $taxonomy : self::DEFAULT_TAXONOMY;
@@ -342,6 +361,9 @@  discard block
 block discarded – undo
342 361
 
343 362
 	abstract function get_object_by_id( $object_id );
344 363
 
364
+	/**
365
+	 * @param integer $count
366
+	 */
345 367
 	function create_many( $count, $args = array(), $generation_definitions = null ) {
346 368
 		$results = array();
347 369
 		for ( $i = 0; $i < $count; $i++ ) {
@@ -405,6 +427,9 @@  discard block
 block discarded – undo
405 427
 	public $next;
406 428
 	public $template_string;
407 429
 
430
+	/**
431
+	 * @param integer $start
432
+	 */
408 433
 	function __construct( $template_string = '%s', $start = null ) {
409 434
 		if ( $start ) {
410 435
 			$this->next = $start;
Please login to merge, or discard this patch.
tests/lib/wordpress-tests-lib/includes/functions.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@  discard block
 block discarded – undo
10 10
 	return true;
11 11
 }
12 12
 
13
+/**
14
+ * @param integer $priority
15
+ */
13 16
 function _test_filter_build_unique_id($tag, $function, $priority) {
14 17
 	global $wp_filter;
15 18
 	static $filter_id_count = 0;
@@ -92,6 +95,9 @@  discard block
 block discarded – undo
92 95
 	return '_wp_die_handler';
93 96
 }
94 97
 
98
+/**
99
+ * @param string $title
100
+ */
95 101
 function _wp_die_handler_txt( $message, $title, $args ) {
96 102
 	echo "\nwp_die called\n";
97 103
 	echo "Message : $message\n";
Please login to merge, or discard this patch.
tests/lib/wordpress-tests-lib/includes/mock-fs.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -49,6 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
 	/**
51 51
 	 * "Bulk Loads" a filesystem into the internal virtual filesystem
52
+	 * @param string $paths
52 53
 	 */
53 54
 	function setfs( $paths ) {
54 55
 		if ( ! is_array($paths) )
@@ -144,6 +145,9 @@  discard block
 block discarded – undo
144 145
 		return isset( $this->fs_map[ $file ] ) && $this->fs_map[ $file ]->is_file();
145 146
 	}
146 147
 
148
+	/**
149
+	 * @param string $path
150
+	 */
147 151
 	function is_dir( $path ) {
148 152
 		$path = trailingslashit( $path );
149 153
 
Please login to merge, or discard this patch.
tests/lib/wordpress-tests-lib/includes/testcase.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -336,8 +336,6 @@  discard block
 block discarded – undo
336 336
 	 *
337 337
 	 * @since 4.2.0
338 338
 	 *
339
-	 * @param string $deprecated Name of the function, method, or class that appears in the first argument of the
340
-	 *                           source `_doing_it_wrong()` call.
341 339
 	 */
342 340
 	public function setExpectedIncorrectUsage( $doing_it_wrong ) {
343 341
 		array_push( $this->expected_doing_it_wrong, $doing_it_wrong );
@@ -525,7 +523,6 @@  discard block
 block discarded – undo
525 523
 	 * expected to be false. For example, assertQueryTrue('is_single', 'is_feed') means is_single()
526 524
 	 * and is_feed() must be true and everything else must be false to pass.
527 525
 	 *
528
-	 * @param string $prop,... Any number of WP_Query properties that are expected to be true for the current request.
529 526
 	 */
530 527
 	function assertQueryTrue(/* ... */) {
531 528
 		global $wp_query;
Please login to merge, or discard this patch.