Changeset 55562 for trunk/tests/phpunit/tests/user/capabilities.php
- Timestamp:
- 03/19/2023 12:03:30 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/capabilities.php
r54865 r55562 1315 1315 } 1316 1316 1317 public function authorless_post_statuses() {1318 return array( array( 'draft' ), array( 'private' ), array( 'publish' ) );1319 }1320 1321 1317 /** 1322 1318 * @ticket 27020 1323 * @dataProvider authorless_post_statuses1319 * @dataProvider data_authorless_post 1324 1320 */ 1325 1321 public function test_authorless_post( $status ) { … … 1348 1344 $this->assertFalse( $contributor->has_cap( 'delete_post', $post ) ); 1349 1345 $this->assertSame( 'publish' === $status, $contributor->has_cap( 'read_post', $post ) ); 1346 } 1347 1348 public function data_authorless_post() { 1349 return array( array( 'draft' ), array( 'private' ), array( 'publish' ) ); 1350 1350 } 1351 1351
Note: See TracChangeset
for help on using the changeset viewer.