Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Amend visibility of setUp() method in tests.
  • Loading branch information
bbrala committed Mar 13, 2019
commit 850298a38cb833a403819a62982690117069c3f0
3 changes: 2 additions & 1 deletion tests/Unit/ControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ class ControllerTest extends TestCase
/** @var TestModel */
protected $testModel;

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

$this->setUpDatabase($this->app);
$this->testModel = new TestModel(['title' => 'test', 'body' => 'test']);
$this->testModel->save();
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/ResponseServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ResponseServiceTest extends TestCase
*/
private $responseService;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->responseService = new ResponseService();
Expand Down