| @@ 586-598 (lines=13) @@ | ||
| 583 | $this->assertSame( $can_edit_others_post, $user_can_edit ); |
|
| 584 | } |
|
| 585 | ||
| 586 | public function data_user_with_role_can_edit_own_post() { |
|
| 587 | $data = array(); |
|
| 588 | $caps = $this->getPrimitiveCapsAndRoles(); |
|
| 589 | ||
| 590 | foreach ( self::$users as $role => $null ) { |
|
| 591 | $data[] = array( |
|
| 592 | $role, |
|
| 593 | in_array( $role, $caps['edit_published_posts'], true ), |
|
| 594 | ); |
|
| 595 | } |
|
| 596 | ||
| 597 | return $data; |
|
| 598 | } |
|
| 599 | ||
| 600 | public function data_user_with_role_can_edit_others_posts() { |
|
| 601 | $data = array(); |
|
| @@ 600-612 (lines=13) @@ | ||
| 597 | return $data; |
|
| 598 | } |
|
| 599 | ||
| 600 | public function data_user_with_role_can_edit_others_posts() { |
|
| 601 | $data = array(); |
|
| 602 | $caps = $this->getPrimitiveCapsAndRoles(); |
|
| 603 | ||
| 604 | foreach ( self::$users as $role => $null ) { |
|
| 605 | $data[] = array( |
|
| 606 | $role, |
|
| 607 | in_array( $role, $caps['edit_others_posts'], true ), |
|
| 608 | ); |
|
| 609 | } |
|
| 610 | ||
| 611 | return $data; |
|
| 612 | } |
|
| 613 | ||
| 614 | /** |
|
| 615 | * @group ms-required |
|