Files
Speedtest-Tracker/tests/Unit/Controllers/IntegrationsController/NotificationTest.php
2020-08-25 21:54:39 +01:00

36 lines
712 B
PHP

<?php
namespace Tests\Unit\Controllers\IntegrationsController;
use App\Http\Controllers\IntegrationsController;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class NotificationTest extends TestCase
{
use RefreshDatabase;
/**
* Controller
*
* @var IntegrationsController
*/
private $controller;
public function setUp() : void
{
parent::setUp();
$this->controller = new IntegrationsController();
}
public function testNotificationsTest()
{
$resp = $this->controller->testNotification()->original;
$this->assertEquals([
'method' => 'test notification agents'
], $resp);
}
}