Changeset 38382 for trunk/tests/phpunit/tests/xmlrpc/wp/getPosts.php
- Timestamp:
- 08/26/2016 08:21:30 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/xmlrpc/wp/getPosts.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getPosts.php
r35242 r38382 137 137 $this->make_user_by_role( 'editor' ); 138 138 139 $post_ids[] = self::factory()->post->create( array( 'post_title' => 'First: ' . rand_str()) );140 $post_ids[] = self::factory()->post->create( array( 'post_title' => 'Second: ' . rand_str()) );139 $post_ids[] = self::factory()->post->create( array( 'post_title' => 'First: Hello, World!' ) ); 140 $post_ids[] = self::factory()->post->create( array( 'post_title' => 'Second: Hello, World!' ) ); 141 141 142 142 // Search for none of them 143 $filter = array( 's' => rand_str());143 $filter = array( 's' => 'Third' ); 144 144 $results = $this->myxmlrpcserver->wp_getPosts( array( 1, 'editor', 'editor', $filter ) ); 145 145 $this->assertNotInstanceOf( 'IXR_Error', $results );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)