EricMakesStuff\ServerMonitor\Test\Integration\Events\SSLCertificateExpiringTest::it_will_fire_an_event_when_certificate_is_expiring PHP Method

it_will_fire_an_event_when_certificate_is_expiring() public method

    public function it_will_fire_an_event_when_certificate_is_expiring()
    {
        $this->app['config']->set('server-monitor.monitors', ['SSLCertificate' => [['url' => 'https://www.laravel.com/', 'alarmDaysBeforeExpiration' => range(1, 365 * 2)]]]);
        $this->expectsEvent(SSLCertificateExpiring::class);
        Artisan::call('monitor:run');
    }