mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Remove test method
This commit is contained in:
parent
508660b1df
commit
bad2eead4c
|
@ -11,7 +11,6 @@ use App\Models\User;
|
||||||
use App\Notifications\CheckinAssetNotification;
|
use App\Notifications\CheckinAssetNotification;
|
||||||
use App\Notifications\CheckoutAssetNotification;
|
use App\Notifications\CheckoutAssetNotification;
|
||||||
use Illuminate\Notifications\AnonymousNotifiable;
|
use Illuminate\Notifications\AnonymousNotifiable;
|
||||||
use Illuminate\Support\Facades\Event;
|
|
||||||
use Illuminate\Support\Facades\Notification;
|
use Illuminate\Support\Facades\Notification;
|
||||||
use Tests\Support\InteractsWithSettings;
|
use Tests\Support\InteractsWithSettings;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
@ -29,15 +28,6 @@ class AssetWebhookTest extends TestCase
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testAssetCheckoutFiresCheckoutEvent()
|
|
||||||
{
|
|
||||||
Event::fake([CheckoutableCheckedOut::class]);
|
|
||||||
|
|
||||||
$this->createAsset()->checkOut(User::factory()->create(), User::factory()->create());
|
|
||||||
|
|
||||||
Event::assertDispatched(CheckoutableCheckedOut::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @dataProvider checkoutTargets */
|
/** @dataProvider checkoutTargets */
|
||||||
public function testAssetCheckoutSendsWebhookNotificationWhenSettingEnabled($checkoutTarget)
|
public function testAssetCheckoutSendsWebhookNotificationWhenSettingEnabled($checkoutTarget)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue