147 - Upgrading Laravel and Deleting Some Code

This commit is contained in:
Adam Wathan
2017-12-08 12:29:13 -05:00
parent c4d4b2995b
commit 6f4da445d2
10 changed files with 372 additions and 307 deletions

View File

@@ -28,10 +28,6 @@ abstract class TestCase extends \Illuminate\Foundation\Testing\TestCase
return $this->original->getData()[$key];
});
TestResponse::macro('assertViewIs', function ($name) {
Assert::assertEquals($name, $this->original->name());
});
EloquentCollection::macro('assertContains', function ($value) {
Assert::assertTrue($this->contains($value), "Failed asserting that the collection contains the specified value.");
});
@@ -49,21 +45,4 @@ abstract class TestCase extends \Illuminate\Foundation\Testing\TestCase
});
});
}
protected function disableExceptionHandling()
{
$this->app->instance(ExceptionHandler::class, new class extends Handler {
public function __construct() {}
public function report(Exception $e) {}
public function render($request, Exception $e) {
throw $e;
}
});
}
protected function from($url)
{
session()->setPreviousUrl(url($url));
return $this;
}
}