Files
carpseeds.pl/wp-content/plugins/elementor-3.2.5-bck4/tests/phpunit/base-class.php
2024-07-15 11:28:08 +02:00

28 lines
672 B
PHP

<?php
namespace Elementor\Testing;
use Elementor\Plugin;
use Elementor\Core\Wp_Api;
use Elementor\Testing\Traits\Auth_Helpers;
use Elementor\Testing\Traits\Base_Elementor;
use Elementor\Testing\Traits\Extra_Assertions;
class Elementor_Test_Base extends \WP_UnitTestCase {
use Base_Elementor, Extra_Assertions, Auth_Helpers;
public function setUp() {
parent::setUp();
set_current_screen( 'dashboard' );
}
public function tearDown() {
parent::tearDown();
Plugin::$instance->editor->set_edit_mode( false );
Plugin::$instance->documents->restore_document();
Plugin::$instance->editor->set_edit_mode( false );
Plugin::$instance->wp = new Wp_Api();
}
}