first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?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();
}
}