Skip to content

Commit

Permalink
Update the visibility of setUp and tearDown (#48383)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot authored Sep 13, 2023
1 parent ece34f1 commit 737cdec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion tests/Foundation/Testing/TestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ public function test_it_doesnt_fail_with_encoded_json()
throw $exception;
}

public function tearDown(): void
protected function tearDown(): void
{
ExampleTestCase::$latestResponse = null;

parent::tearDown();
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Hashing/HasherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class HasherTest extends TestCase
{
public $hashManager;

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SubMinuteSchedulingTest extends TestCase
{
protected Schedule $schedule;

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

Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Mail/SentMessageMailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class SentMessageMailTest extends TestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down

0 comments on commit 737cdec

Please sign in to comment.