Spaces:
No application file
No application file
mautic
/
app
/bundles
/NotificationBundle
/Tests
/Functional
/Controller
/MobileNotificationControllerTest.php
declare(strict_types=1); | |
namespace Mautic\NotificationBundle\Tests\Functional\Controller; | |
use Mautic\CoreBundle\Test\MauticMysqlTestCase; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
final class MobileNotificationControllerTest extends MauticMysqlTestCase | |
{ | |
/** | |
* Smoke test to ensure the '/s/mobile_notifications' route loads. | |
*/ | |
public function testIndexRouteSuccessfullyLoads(): void | |
{ | |
$this->client->request(Request::METHOD_GET, '/s/mobile_notifications'); | |
$response = $this->client->getResponse(); | |
$this->assertEquals(Response::HTTP_OK, $response->getStatusCode()); | |
} | |
public function testCreateRouteSuccessfullyLoads(): void | |
{ | |
$this->client->request(Request::METHOD_GET, '/s/mobile_notifications/new'); | |
$response = $this->client->getResponse(); | |
$this->assertEquals(Response::HTTP_OK, $response->getStatusCode()); | |
} | |
} | |