Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wpscholar committed Feb 4, 2025
1 parent c40d52d commit 858d6c4
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/vendor/
/wordpress/
/node_modules/

.phpunit.result.cache
4 changes: 3 additions & 1 deletion tests/Unit/GetCurrentSinglePurgeUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ class GetCurrentSinglePurgeUrlTest extends WP_UnitTestCase {
/**
* Setup class instance
*/
public function setUp() {
public function setUp(): void
{
parent::setUp();
$this->instance = new Endurance_Page_Cache();
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Unit/GetPurgeRequestUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ class GetPurgeRequestUrlTest extends WP_UnitTestCase {
/**
* Setup class instance
*/
public function setUp() {
public function setUp(): void
{
parent::setUp();
$this->instance = new Endurance_Page_Cache();
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Unit/OptionHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ class OptionHandlerTest extends TestCase {
/**
* Setup class instance
*/
public function setUp() {
public function setUp(): void
{
parent::setUp();
$this->instance = new Endurance_Page_Cache();
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Unit/ShouldThrottleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ class ShouldThrottleTest extends WP_UnitTestCase {
/**
* Setup class instance
*/
public function setUp() {
public function setUp(): void
{
parent::setUp();
$this->instance = new Endurance_Page_Cache();
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Unit/ToSnakeCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ class ToSnakeCaseTest extends TestCase {
/**
* Setup class instance
*/
public function setUp() {
public function setUp(): void
{
parent::setUp();
$this->instance = new Endurance_Page_Cache();
}

Expand Down
4 changes: 3 additions & 1 deletion tests/Unit/ToStudlyCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ class ToStudlyCaseTest extends TestCase {
/**
* Setup class instance
*/
public function setUp() {
public function setUp(): void
{
parent::setUp();
$this->instance = new Endurance_Page_Cache();
}

Expand Down

0 comments on commit 858d6c4

Please sign in to comment.