mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-24 14:31:52 +01:00
Added more tests and fixed changelog
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user