Changeset 8129 for trunk/tests/testcases/blogs/functions.php
- Timestamp:
- 03/14/2014 12:07:18 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/testcases/blogs/functions.php
r8073 r8129 16 16 * @group blogmeta 17 17 * @group bp_blogs_delete_blogmeta 18 * @ticket BP5399 18 19 */ 19 20 public function test_bp_blogs_delete_blogmeta_illegal_characters() { … … 21 22 $this->assertSame( 'bar', bp_blogs_get_blogmeta( 1, 'foo' ) ); 22 23 $krazy_key = ' f!@#$%^o *(){}o?+'; 23 $this->assert True( bp_blogs_delete_blogmeta( 1, $krazy_key ) );24 $this->assertSame( ' ', bp_blogs_get_blogmeta( 1, 'foo' ) );24 $this->assertFalse( bp_blogs_delete_blogmeta( 1, $krazy_key ) ); 25 $this->assertSame( 'bar', bp_blogs_get_blogmeta( 1, 'foo' ) ); 25 26 } 26 27 … … 110 111 * @group blogmeta 111 112 * @group bp_blogs_get_blogmeta 113 * @ticket BP5399 112 114 */ 113 115 public function test_bp_blogs_get_blogmeta_illegal_characters() { 114 116 bp_blogs_update_blogmeta( 1, 'foo', 'bar' ); 115 117 $krazy_key = ' f!@#$%^o *(){}o?+'; 116 $this->assert Same( 'bar',bp_blogs_get_blogmeta( 1, $krazy_key ) );118 $this->assertEmpty( bp_blogs_get_blogmeta( 1, $krazy_key ) ); 117 119 } 118 120 … … 167 169 * @group blogmeta 168 170 * @group bp_blogs_update_blogmeta 171 * @ticket BP5399 169 172 */ 170 173 public function test_bp_blogs_update_blogmeta_illegal_characters() { 171 174 $krazy_key = ' f!@#$%^o *(){}o?+'; 172 175 bp_blogs_update_blogmeta( 1, $krazy_key, 'bar' ); 173 $this->assert Same( 'bar',bp_blogs_get_blogmeta( 1, 'foo' ) );176 $this->assertEmpty( bp_blogs_get_blogmeta( 1, 'foo' ) ); 174 177 } 175 178
Note: See TracChangeset
for help on using the changeset viewer.