mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-03 04:48:01 +00:00
147 - Upgrading Laravel and Deleting Some Code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user