Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Oct 19, 2023
1 parent 206702f commit cd9780a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Managers/CleanupManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* CleanupManagerTest test case.
*/
class CleanupManagerTest extends WP_UnitTestCase {

public $cleanup_manager;

public function setUp():void {
parent::setUp();

Expand Down Expand Up @@ -35,6 +38,7 @@ public function test_remove_version_css_js() {
* @return void
*/
public function test_xml_rpc_disabled() {
$this->cleanup_manager->run();
$this->assertFalse( apply_filters( 'xmlrpc_enabled', true ) );
}
}

0 comments on commit cd9780a

Please sign in to comment.