@@ 1200-1205 (lines=6) @@ | ||
1197 | 'assign_terms' => 'edit_posts', |
|
1198 | ); |
|
1199 | ||
1200 | foreach ( $expected as $meta_cap => $primitive_cap ) { |
|
1201 | $caps = map_meta_cap( $tax->cap->$meta_cap, $user->ID ); |
|
1202 | $this->assertEquals( array( |
|
1203 | $primitive_cap, |
|
1204 | ), $caps, "Meta cap: {$meta_cap}" ); |
|
1205 | } |
|
1206 | } |
|
1207 | ||
1208 | /** |
|
@@ 1297-1302 (lines=6) @@ | ||
1294 | $tax = get_taxonomy( $taxonomy ); |
|
1295 | $user = self::$users['administrator']; |
|
1296 | ||
1297 | foreach ( $expected as $meta_cap => $primitive_cap ) { |
|
1298 | $caps = map_meta_cap( $tax->cap->$meta_cap, $user->ID ); |
|
1299 | $this->assertEquals( array( |
|
1300 | $primitive_cap, |
|
1301 | ), $caps, "Meta cap: {$meta_cap}" ); |
|
1302 | } |
|
1303 | } |
|
1304 | ||
1305 | /** |