Changeset 7877 for trunk/tests/testcases/blogs/functions.php
- Timestamp:
- 02/14/2014 01:32:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/testcases/blogs/functions.php
r7869 r7877 156 156 $this->assertFalse( bp_blogs_update_blogmeta( 1, 'foo', 'bar' ) ); 157 157 } 158 159 /** 160 * @group blogmeta 161 * @group bp_blogs_add_blogmeta 162 */ 163 public function test_bp_blogs_add_blogmeta_no_meta_key() { 164 $this->assertFalse( bp_blogs_add_blogmeta( 1, '', 'bar' ) ); 165 } 166 167 /** 168 * @group blogmeta 169 * @group bp_blogs_add_blogmeta 170 */ 171 public function test_bp_blogs_add_blogmeta_empty_object_id() { 172 $this->assertFalse( bp_blogs_add_blogmeta( 0, 'foo', 'bar' ) ); 173 } 174 175 /** 176 * @group blogmeta 177 * @group bp_blogs_add_blogmeta 178 */ 179 public function test_bp_blogs_add_blogmeta_existing_unique() { 180 bp_blogs_add_blogmeta( 1, 'foo', 'bar' ); 181 $this->assertFalse( bp_blogs_add_blogmeta( 1, 'foo', 'baz', true ) ); 182 } 183 184 /** 185 * @group blogmeta 186 * @group bp_blogs_add_blogmeta 187 */ 188 public function test_bp_blogs_add_blogmeta_existing_not_unique() { 189 bp_blogs_add_blogmeta( 1, 'foo', 'bar' ); 190 $this->assertNotEmpty( bp_blogs_add_blogmeta( 1, 'foo', 'baz' ) ); 191 } 158 192 }
Note: See TracChangeset
for help on using the changeset viewer.