Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenyeargin committed Jan 31, 2024
1 parent eed30f8 commit de4d5ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Controller/MessengerControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ public function testSms()
$client->loginUser($testUser);

$crawler = $client->request('GET', '/messenger/sms');
if (!isset($_ENV['TWILIO_DSN']) || !$_ENV['TWILIO_DSN']) {
$this->assertResponseRedirects('/messenger/', 302);

return;
}
$this->assertResponseIsSuccessful();
$this->assertPageTitleSame('Member Directory - Messenger - SMS');
$this->assertSelectorTextContains('span.display-6', 'Send Bulk SMS');
Expand Down

0 comments on commit de4d5ec

Please sign in to comment.