Skip to content

Commit

Permalink
Adjusting unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
renatonascalves committed Nov 16, 2023
1 parent ed9908d commit 0e27646
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/feature/test-core-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,8 @@ public function test_get_author_display_name_from_global_post(): void {
[ 'display_name' => $author_name ]
);

remove_filter( 'get_the_author_display_name', 'Byline_Manager\auto_integrate_byline', 10, 2 );

$display_name = get_the_author_meta( 'display_name', $user->ID );

add_filter( 'get_the_author_display_name', 'Byline_Manager\auto_integrate_byline', 10, 2 );

$this->assertSame( $author_name, $display_name );
$this->assertNotSame( 'Byline 1', $display_name );
$this->assertNotSame( 'Byline 2', $display_name );
Expand Down

0 comments on commit 0e27646

Please sign in to comment.