@@ -2601,7 +2601,7 @@ public function test_role_capabilities_updated_correctly_via_update_option() {
26012601 * @ticket 64779
26022602 * @covers ::map_meta_cap
26032603 */
2604- public function test_note_author_can_edit_own_note () {
2604+ public function test_note_author_can_edit_own_note (): void {
26052605 $ contributor = self ::$ users ['contributor ' ];
26062606 $ post_id = self ::factory ()->post ->create ( array ( 'post_author ' => $ contributor ->ID ) );
26072607 $ note_id = self ::factory ()->comment ->create (
@@ -2621,7 +2621,7 @@ public function test_note_author_can_edit_own_note() {
26212621 * @ticket 64779
26222622 * @covers ::map_meta_cap
26232623 */
2624- public function test_note_author_can_delete_own_note () {
2624+ public function test_note_author_can_delete_own_note (): void {
26252625 $ contributor = self ::$ users ['contributor ' ];
26262626 $ post_id = self ::factory ()->post ->create ( array ( 'post_author ' => $ contributor ->ID ) );
26272627 $ note_id = self ::factory ()->comment ->create (
@@ -2641,7 +2641,7 @@ public function test_note_author_can_delete_own_note() {
26412641 * @ticket 64779
26422642 * @covers ::map_meta_cap
26432643 */
2644- public function test_non_author_cannot_edit_others_note () {
2644+ public function test_non_author_cannot_edit_others_note (): void {
26452645 $ contributor = self ::$ users ['contributor ' ];
26462646 $ admin = self ::$ users ['administrator ' ];
26472647 $ post_id = self ::factory ()->post ->create ( array ( 'post_author ' => $ contributor ->ID ) );
@@ -2665,7 +2665,7 @@ public function test_non_author_cannot_edit_others_note() {
26652665 * @ticket 64779
26662666 * @covers ::map_meta_cap
26672667 */
2668- public function test_non_author_cannot_delete_others_note () {
2668+ public function test_non_author_cannot_delete_others_note (): void {
26692669 $ contributor = self ::$ users ['contributor ' ];
26702670 $ admin = self ::$ users ['administrator ' ];
26712671 $ post_id = self ::factory ()->post ->create ( array ( 'post_author ' => $ contributor ->ID ) );
@@ -2689,7 +2689,7 @@ public function test_non_author_cannot_delete_others_note() {
26892689 * @ticket 64779
26902690 * @covers ::map_meta_cap
26912691 */
2692- public function test_moderator_can_edit_others_note () {
2692+ public function test_moderator_can_edit_others_note (): void {
26932693 $ editor = self ::$ users ['editor ' ];
26942694 $ contributor = self ::$ users ['contributor ' ];
26952695 $ post_id = self ::factory ()->post ->create ( array ( 'post_author ' => $ contributor ->ID ) );
@@ -2713,7 +2713,7 @@ public function test_moderator_can_edit_others_note() {
27132713 * @ticket 64779
27142714 * @covers ::map_meta_cap
27152715 */
2716- public function test_moderator_can_delete_others_note () {
2716+ public function test_moderator_can_delete_others_note (): void {
27172717 $ editor = self ::$ users ['editor ' ];
27182718 $ contributor = self ::$ users ['contributor ' ];
27192719 $ post_id = self ::factory ()->post ->create ( array ( 'post_author ' => $ contributor ->ID ) );
@@ -2737,7 +2737,7 @@ public function test_moderator_can_delete_others_note() {
27372737 * @ticket 64779
27382738 * @covers ::map_meta_cap
27392739 */
2740- public function test_author_cannot_edit_others_note () {
2740+ public function test_author_cannot_edit_others_note (): void {
27412741 $ author = self ::$ users ['author ' ];
27422742 $ editor = self ::$ users ['editor ' ];
27432743 $ post_id = self ::factory ()->post ->create ( array ( 'post_author ' => $ author ->ID ) );
@@ -2763,7 +2763,7 @@ public function test_author_cannot_edit_others_note() {
27632763 * @ticket 64779
27642764 * @covers ::map_meta_cap
27652765 */
2766- public function test_subscriber_cannot_edit_own_note () {
2766+ public function test_subscriber_cannot_edit_own_note (): void {
27672767 $ subscriber = self ::$ users ['subscriber ' ];
27682768 $ post_id = self ::factory ()->post ->create ();
27692769 $ note_id = self ::factory ()->comment ->create (
@@ -2786,7 +2786,7 @@ public function test_subscriber_cannot_edit_own_note() {
27862786 * @ticket 64779
27872787 * @covers ::map_meta_cap
27882788 */
2789- public function test_edit_regular_comment_unchanged () {
2789+ public function test_edit_regular_comment_unchanged (): void {
27902790 $ contributor = self ::$ users ['contributor ' ];
27912791 $ admin = self ::$ users ['administrator ' ];
27922792 $ post_id = self ::factory ()->post ->create (
@@ -2815,7 +2815,7 @@ public function test_edit_regular_comment_unchanged() {
28152815 * @ticket 64779
28162816 * @covers ::map_meta_cap
28172817 */
2818- public function test_delete_regular_comment_maps_to_edit_post () {
2818+ public function test_delete_regular_comment_maps_to_edit_post (): void {
28192819 $ contributor = self ::$ users ['contributor ' ];
28202820 $ admin = self ::$ users ['administrator ' ];
28212821 $ post_id = self ::factory ()->post ->create (
@@ -2844,7 +2844,7 @@ public function test_delete_regular_comment_maps_to_edit_post() {
28442844 * @ticket 64779
28452845 * @covers ::map_meta_cap
28462846 */
2847- public function test_edit_comment_nonexistent_comment () {
2847+ public function test_edit_comment_nonexistent_comment (): void {
28482848 $ admin = self ::$ users ['administrator ' ];
28492849
28502850 $ this ->assertFalse ( user_can ( $ admin ->ID , 'edit_comment ' , PHP_INT_MAX ) );
@@ -2856,7 +2856,7 @@ public function test_edit_comment_nonexistent_comment() {
28562856 * @ticket 64779
28572857 * @covers ::map_meta_cap
28582858 */
2859- public function test_delete_comment_nonexistent_comment () {
2859+ public function test_delete_comment_nonexistent_comment (): void {
28602860 $ admin = self ::$ users ['administrator ' ];
28612861
28622862 $ this ->assertFalse ( user_can ( $ admin ->ID , 'delete_comment ' , PHP_INT_MAX ) );
@@ -2869,7 +2869,7 @@ public function test_delete_comment_nonexistent_comment() {
28692869 * @covers ::map_meta_cap
28702870 * @expectedIncorrectUsage map_meta_cap
28712871 */
2872- public function test_edit_comment_without_argument () {
2872+ public function test_edit_comment_without_argument (): void {
28732873 $ admin = self ::$ users ['administrator ' ];
28742874
28752875 $ this ->assertFalse ( user_can ( $ admin ->ID , 'edit_comment ' ) );
@@ -2882,7 +2882,7 @@ public function test_edit_comment_without_argument() {
28822882 * @covers ::map_meta_cap
28832883 * @expectedIncorrectUsage map_meta_cap
28842884 */
2885- public function test_delete_comment_without_argument () {
2885+ public function test_delete_comment_without_argument (): void {
28862886 $ admin = self ::$ users ['administrator ' ];
28872887
28882888 $ this ->assertFalse ( user_can ( $ admin ->ID , 'delete_comment ' ) );
0 commit comments