Skip to content

Commit

Permalink
Internal: Update php unit tests with PHP 7.4, 8.0 [ED-12973] (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
TzviRabinovitch committed Dec 3, 2023
1 parent c546f58 commit a0b0001
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion phpunit/ajax-class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
abstract class Elementor_Test_AJAX extends \WP_Ajax_UnitTestCase {
use Base_Elementor, Extra_Assertions, Kit_Trait;

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

$this->create_default_kit();
Expand Down
4 changes: 2 additions & 2 deletions phpunit/base-class.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ abstract class Elementor_Test_Base extends \WP_UnitTestCase {

use Base_Elementor, Extra_Assertions, Auth_Helpers, Kit_Trait;

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

$this->create_default_kit();

set_current_screen( 'dashboard' );
}

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

Plugin::$instance->editor->set_edit_mode( false );
Expand Down
2 changes: 1 addition & 1 deletion phpunit/base-schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct( $name = null, array $data = [], $dataName = '' ) {
$this->refResolver = new SchemaStorage( $this->uriRetriever );
}

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

// Required by `Tracker::get_tracking_data`.
Expand Down
2 changes: 1 addition & 1 deletion phpunit/traits/rest-trait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
protected $data_manager;

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

$this->data_manager = Manager::instance();
Expand Down

0 comments on commit a0b0001

Please sign in to comment.