Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Oct 19, 2023
1 parent d4a96a9 commit 10b0bfd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Managers/CleanupManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,13 @@ public function test_remove_version_css_js() {
$this->assertFalse( strpos( $updated_other_src, 'ver=' ) );
$this->assertNotFalse( strpos( $updated_theme_src, 'ver=' ) );
}

/**
* Test disable XML RPC.
*
* @return void
*/
public function test_xml_rpc_disabled() {
$this->assertFalse( apply_filter( 'xmlrpc_enabled' ) );
}
}

0 comments on commit 10b0bfd

Please sign in to comment.