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
Fix tests so they run on all testbench versions.
  • Loading branch information
bbrala committed Mar 9, 2019
commit 6f63b9eaeb96c01120c0461b057f7b3eb8533ddc
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ language: php

matrix:
include:
- php: "7.0"
env: LARAVEL_VERSION="5.5.*"
- php: "7.1"
env: LARAVEL_VERSION="5.5.*"
- php: "7.2"
env: LARAVEL_VERSION="5.5.*"
- php: "7.2"
env: LARAVEL_VERSION="5.6.*"
- php: "7.2"
env: LARAVEL_VERSION="5.7.*" RUN_CS_FIXER=1
env: LARAVEL_VERSION="5.7.*"
- php: "7.2"
env: LARAVEL_VERSION="5.8.*"
- php: "7.3"
env: LARAVEL_VERSION="5.8.*" RUN_CS_FIXER=1

sudo: false

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

class CommandTestCase extends TestCase
{
public function setUp()
protected function setUp(): void
{
parent::setUp();
config(['laravel_api.path.templates' => 'resources/templates/']);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/ControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ControllerTest extends TestCase
/** @var TestModel */
protected $testModel;

public function setUp()
public function setUp(): void
{
parent::setUp();
$this->setUpDatabase($this->app);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/EmptyPaginatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class EmptyPaginatorTest extends TestCase
/** @var EmptyPaginator */
private $emptyPaginator;

protected function setUp()
protected function setUp(): void
{
$this->emptyPaginator = new EmptyPaginator();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/HandleResponsesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class HandleResponsesTest extends TestCase
/** @var HandleResponses $mock */
private $mock;

protected function setUp()
protected function setUp(): void
{
$this->mock = $this->getMockForTrait(HandleResponses::class);
parent::setUp(); // TODO: Change the autogenerated stub
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/InspectContentTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class InspectContentTypeTest extends TestCase
/** @var InspectContentType */
protected $middleware;

protected function setUp()
protected function setUp(): void
{
parent::setUp(); // TODO: Change the autogenerated stub
$this->request = Request::create('http://example.com/admin', 'GET');
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/RepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class RepositoryTest extends TestCase
* Bootstrap the database
* Setup a base repository which most test cases use.
*/
protected function setUp()
protected function setUp(): void
{
parent::setUp();
$this->setUpDatabase($this->app);
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()
public function setUp(): void
{
parent::setUp();
$this->responseService = new ResponseService();
Expand Down