Skip to content

Commit

Permalink
remove DBTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
remyperona committed May 10, 2024
1 parent 80972a2 commit 4a185aa
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/Integration/inc/Engine/WPRocketUninstall/uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@

namespace WP_Rocket\Tests\Integration\inc\Engine\WPRocketUninstall;

use WP_Rocket\Tests\Integration\DBTrait;
use WPRocketUninstall;
use WP_Rocket\Tests\Integration\FilesystemTestCase;

/**
* Test class covering WPRocketUninstall::uninstall
*
* @group AdminOnly
* @group Uninstall
* @group vfs
* @group Uninstall
* @group vfs
*/
class Test_Uninstall extends FilesystemTestCase {
use DBTrait;

protected $path_to_test_data = '/inc/Engine/WPRocketUninstall/uninstall.php';

private static $options = [
Expand Down Expand Up @@ -58,8 +55,6 @@ class Test_Uninstall extends FilesystemTestCase {
public static function set_up_before_class() {
parent::set_up_before_class();

self::installFresh();

require_once WP_ROCKET_PLUGIN_ROOT . '/inc/Engine/WPRocketUninstall.php';

foreach ( self::getOptionNames() as $option_name ) {
Expand All @@ -68,8 +63,6 @@ public static function set_up_before_class() {
}

public static function tear_down_after_class() {
self::uninstallAll();

foreach ( self::$options as $option_name => $value ) {
if ( ! empty( $value ) ) {
update_option( $option_name, $value );
Expand Down

0 comments on commit 4a185aa

Please sign in to comment.