Skip to content

Commit 737cdec

Browse files
authored
Update the visibility of setUp and tearDown (#48383)
1 parent ece34f1 commit 737cdec

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

tests/Foundation/Testing/TestCaseTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,11 @@ public function test_it_doesnt_fail_with_encoded_json()
106106
throw $exception;
107107
}
108108

109-
public function tearDown(): void
109+
protected function tearDown(): void
110110
{
111111
ExampleTestCase::$latestResponse = null;
112+
113+
parent::tearDown();
112114
}
113115
}
114116

tests/Hashing/HasherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class HasherTest extends TestCase
1515
{
1616
public $hashManager;
1717

18-
public function setUp(): void
18+
protected function setUp(): void
1919
{
2020
parent::setUp();
2121

tests/Integration/Console/Scheduling/SubMinuteSchedulingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class SubMinuteSchedulingTest extends TestCase
1212
{
1313
protected Schedule $schedule;
1414

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

tests/Integration/Mail/SentMessageMailTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class SentMessageMailTest extends TestCase
1616
{
17-
public function setUp(): void
17+
protected function setUp(): void
1818
{
1919
parent::setUp();
2020

0 commit comments

Comments
 (0)