Changeset 6948 for trunk/tests/testcases/activity/template.php
- Timestamp:
- 04/26/2013 05:46:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/testcases/activity/template.php
r6926 r6948 111 111 $activities_template = null; 112 112 } 113 114 /** 115 * Integration test for 'meta_query' param 116 */ 117 function test_bp_has_activities_with_meta_query() { 118 $a1 = $this->factory->activity->create(); 119 $a2 = $this->factory->activity->create(); 120 bp_activity_update_meta( $a1->id, 'foo', 'bar' ); 121 122 global $activities_template; 123 bp_has_activities( array( 124 'meta_query' => array( 125 array( 126 'key' => 'foo', 127 'value' => 'bar', 128 ), 129 ), 130 ) ); 131 132 $ids = wp_list_pluck( $activities_template->activities, 'id' ); 133 $this->assertEquals( $ids, array( $a1->id ) ); 134 } 113 135 }
Note: See TracChangeset
for help on using the changeset viewer.