Changeset 43571 for trunk/tests/phpunit/tests/user/capabilities.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/capabilities.php
r43381 r43571 881 881 $role_name = 'janitor'; 882 882 add_role( 883 $role_name, 'Janitor', array( 883 $role_name, 884 'Janitor', 885 array( 884 886 'level_1' => true, 885 887 'sweep_floor' => true, … … 1101 1103 1102 1104 register_post_type( 1103 'something', array( 1105 'something', 1106 array( 1104 1107 'capabilities' => 1105 1108 array( … … 1307 1310 array( 1308 1311 $primitive_cap, 1309 ), $caps, "Meta cap: {$meta_cap}" 1312 ), 1313 $caps, 1314 "Meta cap: {$meta_cap}" 1310 1315 ); 1311 1316 } … … 1399 1404 $taxonomy = 'custom_cap_taxo'; 1400 1405 register_taxonomy( 1401 $taxonomy, 'post', array( 1406 $taxonomy, 1407 'post', 1408 array( 1402 1409 'capabilities' => $expected, 1403 1410 ) … … 1412 1419 array( 1413 1420 $primitive_cap, 1414 ), $caps, "Meta cap: {$meta_cap}" 1421 ), 1422 $caps, 1423 "Meta cap: {$meta_cap}" 1415 1424 ); 1416 1425 } … … 1715 1724 1716 1725 register_post_type( 1717 'page_capability', array( 1726 'page_capability', 1727 array( 1718 1728 'capability_type' => 'page', 1719 1729 ) … … 1926 1936 $role_name = 'uploader'; 1927 1937 add_role( 1928 $role_name, 'Uploader', array( 1938 $role_name, 1939 'Uploader', 1940 array( 1929 1941 'read' => true, 1930 1942 'upload_files' => true, … … 1954 1966 $role_name = 'uploader'; 1955 1967 add_role( 1956 $role_name, 'Uploader', array( 1968 $role_name, 1969 'Uploader', 1970 array( 1957 1971 'read' => true, 1958 1972 'upload_files' => true, … … 2021 2035 $role_name = 'uploader'; 2022 2036 add_role( 2023 $role_name, 'Uploader', array( 2037 $role_name, 2038 'Uploader', 2039 array( 2024 2040 'read' => true, 2025 2041 'upload_files' => true,
Note: See TracChangeset
for help on using the changeset viewer.