Skip to content

Commit a0b0001

Browse files
Internal: Update php unit tests with PHP 7.4, 8.0 [ED-12973] (#1)
1 parent c546f58 commit a0b0001

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

phpunit/ajax-class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
abstract class Elementor_Test_AJAX extends \WP_Ajax_UnitTestCase {
99
use Base_Elementor, Extra_Assertions, Kit_Trait;
1010

11-
public function setUp() {
11+
public function setUp(): void {
1212
parent::setUp();
1313

1414
$this->create_default_kit();

phpunit/base-class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ abstract class Elementor_Test_Base extends \WP_UnitTestCase {
1212

1313
use Base_Elementor, Extra_Assertions, Auth_Helpers, Kit_Trait;
1414

15-
public function setUp() {
15+
public function setUp(): void {
1616
parent::setUp();
1717

1818
$this->create_default_kit();
1919

2020
set_current_screen( 'dashboard' );
2121
}
2222

23-
public function tearDown() {
23+
public function tearDown(): void {
2424
parent::tearDown();
2525

2626
Plugin::$instance->editor->set_edit_mode( false );

phpunit/base-schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct( $name = null, array $data = [], $dataName = '' ) {
3030
$this->refResolver = new SchemaStorage( $this->uriRetriever );
3131
}
3232

33-
public function setUp() {
33+
public function setUp(): void{
3434
parent::setUp();
3535

3636
// Required by `Tracker::get_tracking_data`.

phpunit/traits/rest-trait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
protected $data_manager;
1515

16-
public function setUp() {
16+
public function setUp() : void {
1717
parent::setUp();
1818

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

0 commit comments

Comments
 (0)