Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
223 changes: 0 additions & 223 deletions src/Illuminate/Foundation/Testing/AssertionsTrait.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Testing/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

abstract class TestCase extends \PHPUnit\Framework\TestCase {

use ApplicationTrait, AssertionsTrait;
use ApplicationTrait;

/**
* Setup the test environment.
Expand Down
12 changes: 1 addition & 11 deletions tests/Foundation/FoundationTestingResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use Illuminate\Foundation\Application;
use Illuminate\Foundation\Testing\ApplicationTrait;
use Illuminate\Foundation\Testing\AssertionsTrait;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
Expand All @@ -19,7 +18,7 @@

class FoundationTestingResponseTest extends TestCase
{
use ApplicationTrait, AssertionsTrait;
use ApplicationTrait;

protected function setUp(): void
{
Expand Down Expand Up @@ -52,15 +51,6 @@ public function testCallReturnsATestResponseAroundTheClientResponse()
$response->assertOk()->assertSee('hello')->assertHeader('X-Foo', 'bar');
}

public function testLegacyAssertionsStillReadTheClientResponse()
{
$this->client->response = new Response('created', 201);

$this->call('POST', '/things');

$this->assertResponseStatus(201);
}

public function testFailedFluentAssertionIsAPhpunitFailure()
{
$this->client->response = new Response('missing', 404);
Expand Down
Loading