Skip to content

Commit 1d084e8

Browse files
committed
tests: cleanup
1 parent cdfd1a9 commit 1d084e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/wpunit/PostObjectConnectionQueriesTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,5 +1864,8 @@ public function testIsValidModelFilter(): void {
18641864
$this->assertArrayNotHasKey( 'errors', $actual );
18651865
$this->assertArrayHasKey( 'data', $actual );
18661866
$this->assertEmpty( $actual['data']['posts']['nodes'], 'The filtered connection should not return posts' );
1867+
1868+
// Reset the filter
1869+
remove_filter( 'graphql_connection_is_valid_model', '__return_false' );
18671870
}
18681871
}

0 commit comments

Comments
 (0)