Changeset 32524 for trunk/tests/phpunit/tests/post/getPostsByAuthorSql.php
- Timestamp:
- 05/21/2015 07:48:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getPostsByAuthorSql.php
r32523 r32524 25 25 register_post_type( 'bar' ); 26 26 27 $maybe_string = get_posts_by_author_sql( 'foo,bar');27 $maybe_string = get_posts_by_author_sql( array( 'foo', 'bar' ) ); 28 28 $this->assertContains( "post_type = 'foo'", $maybe_string ); 29 29 $this->assertContains( "post_type = 'bar'", $maybe_string ); … … 136 136 wp_set_current_user( $u ); 137 137 138 $maybe_string = get_posts_by_author_sql( 'foo,bar,baz');138 $maybe_string = get_posts_by_author_sql( array( 'foo', 'bar', 'baz' ) ); 139 139 $this->assertNotContains( "post_type = 'foo' AND ( post_status = 'publish' OR post_status = 'private' )", $maybe_string ); 140 140 $this->assertNotContains( "post_type = 'bar' AND ( post_status = 'publish' OR post_status = 'private' )", $maybe_string );
Note: See TracChangeset
for help on using the changeset viewer.