From 74b912705d035e030e32eadc80de92a9cf6ecdd6 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 23 Aug 2016 13:48:13 +0000 Subject: [PATCH] Tests: Fix incorrect variable name from [38330]. See #37630. git-svn-id: https://develop.svn.wordpress.org/trunk@38331 602fd350-edb4-49c9-b593-d223f7449a82 --- .../factory/class-wp-unittest-factory-for-attachment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php index 3ed8493860..3960dedc08 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php @@ -25,7 +25,7 @@ class WP_UnitTest_Factory_For_Attachment extends WP_UnitTest_Factory_For_Post { $r = array_merge( array( 'file' => '', - 'parent' => 0, + 'post_parent' => 0, ), $args ); return wp_insert_attachment( $r, $r['file'], $r['post_parent'] );