Changeset 49004 for trunk/tests/phpunit/tests/term/slashes.php
- Timestamp:
- 09/19/2020 10:53:15 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/slashes.php
r49003 r49004 83 83 ); 84 84 foreach ( $taxonomies as $taxonomy ) { 85 $ id = self::factory()->term->create(85 $term_id = self::factory()->term->create( 86 86 array( 87 87 'taxonomy' => $taxonomy, … … 90 90 91 91 $update = wp_update_term( 92 $ id,92 $term_id, 93 93 $taxonomy, 94 94 array( … … 98 98 ); 99 99 100 $term = get_term( $ id, $taxonomy );100 $term = get_term( $term_id, $taxonomy ); 101 101 $this->assertSame( wp_unslash( $this->slash_1 ), $term->name ); 102 102 $this->assertSame( wp_unslash( $this->slash_3 ), $term->description ); 103 103 104 104 $update = wp_update_term( 105 $ id,105 $term_id, 106 106 $taxonomy, 107 107 array( … … 110 110 ) 111 111 ); 112 $term = get_term( $ id, $taxonomy );112 $term = get_term( $term_id, $taxonomy ); 113 113 $this->assertSame( wp_unslash( $this->slash_3 ), $term->name ); 114 114 $this->assertSame( wp_unslash( $this->slash_5 ), $term->description ); 115 115 116 116 $update = wp_update_term( 117 $ id,117 $term_id, 118 118 $taxonomy, 119 119 array( … … 122 122 ) 123 123 ); 124 $term = get_term( $ id, $taxonomy );124 $term = get_term( $term_id, $taxonomy ); 125 125 $this->assertSame( wp_unslash( $this->slash_2 ), $term->name ); 126 126 $this->assertSame( wp_unslash( $this->slash_4 ), $term->description );
Note: See TracChangeset
for help on using the changeset viewer.