Вход Регистрация
Файл: src/vendor/laravel/framework/src/Illuminate/Foundation/Testing/WithoutEvents.php
Строк: 19
<?php

namespace IlluminateFoundationTesting;

use 
Exception;

trait 
WithoutEvents
{
    
/**
     * @throws Exception
     */
    
public function disableEventsForAllTests()
    {
        if (
method_exists($this'withoutEvents')) {
            
$this->withoutEvents();
        } else {
            throw new 
Exception('Unable to disable middleware. ApplicationTrait not used.');
        }
    }
}
Онлайн: 3
Реклама