Skip to content

Commit 1e2a5d6

Browse files
committed
Fix wp-browser version and base test case
1 parent 3debe7c commit 1e2a5d6

File tree

3 files changed

+10
-24
lines changed

3 files changed

+10
-24
lines changed

composer.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,7 @@
3131
"illuminate/collections": "^8.0"
3232
},
3333
"require-dev": {
34-
"codeception/module-asserts": "^1.0",
35-
"codeception/module-cli": "^1.0",
36-
"codeception/module-db": "^1.0",
37-
"codeception/module-filesystem": "^1.0",
38-
"codeception/module-phpbrowser": "^1.0",
39-
"codeception/module-rest": "^1.0",
40-
"codeception/module-webdriver": "^1.0",
41-
"codeception/util-universalframework": "^1.0",
42-
"lucatume/wp-browser": "^3.0.14",
43-
"phpunit/phpunit": "~6.0",
34+
"lucatume/wp-browser": "^3.5 || ^4.0",
4435
"szepeviktor/phpstan-wordpress": "^1.1",
4536
"symfony/event-dispatcher-contracts": "^2.5.1",
4637
"symfony/string": "^5.4",

tests/_support/Helper/ArraysTestCase.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
namespace StellarWP\Arrays\Tests;
44

5-
class ArraysTestCase extends \Codeception\TestCase\WPTestCase {
6-
protected $backupGlobals = false;
5+
use Codeception\Test\Unit;
6+
use lucatume\WPBrowser\TestCase\WPTestCase;
77

8-
public function setUp() {
9-
// before
10-
parent::setUp();
11-
}
8+
/**
9+
* @mixin Unit
10+
* @mixin \PHPUnit\Framework\TestCase
11+
* @mixin \Codeception\PHPUnit\TestCase
12+
*/
13+
class ArraysTestCase extends WPTestCase {
14+
protected $backupGlobals = false;
1215
}
1316

tests/wpunit/ForgetTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@
44
use StellarWP\Arrays\Tests\ArraysTestCase;
55

66
final class ForgetTest extends ArraysTestCase {
7-
public function setUp() {
8-
// before
9-
parent::setUp();
10-
}
11-
12-
public function tearDown() {
13-
parent::tearDown();
14-
}
157

168
public function forget_data_provider() {
179
return [

0 commit comments

Comments
 (0)