File "WithoutMiddleware.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/laravel/framework/src/Illuminate/Foundation/Testing/WithoutMiddleware.php
File size: 500 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
namespace Illuminate\Foundation\Testing;
use Exception;
trait WithoutMiddleware
{
/**
* Prevent all middleware from being executed for this test class.
*
* @throws \Exception
*/
public function disableMiddlewareForAllTests()
{
if (method_exists($this, 'withoutMiddleware')) {
$this->withoutMiddleware();
} else {
throw new Exception('Unable to disable middleware. MakesHttpRequests trait not used.');
}
}
}