2FAuth/tests/Feature/AppTest.php

24 lines
544 B
PHP

<?php
namespace Tests\Feature;
use App\Providers\EventServiceProvider;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Test;
use Tests\FeatureTestCase;
/**
* AppTest class
*/
#[CoversClass(EventServiceProvider::class)]
class AppTest extends FeatureTestCase
{
#[Test]
public function test_events_should_be_explicitly_registered()
{
$eventServiceProvider = app()->getProvider(EventServiceProvider::class);
$this->assertFalse($eventServiceProvider->shouldDiscoverEvents());
}
}