public function SmsFrameworkGatewayAdminTest::testGatewayEditNoDeliveryUrl in SMS Framework 2.x
Same name and namespace in other branches
- 8 tests/src/Functional/SmsFrameworkGatewayAdminTest.php \Drupal\Tests\sms\Functional\SmsFrameworkGatewayAdminTest::testGatewayEditNoDeliveryUrl()
- 2.1.x tests/src/Functional/SmsFrameworkGatewayAdminTest.php \Drupal\Tests\sms\Functional\SmsFrameworkGatewayAdminTest::testGatewayEditNoDeliveryUrl()
Tests a gateway edit form does not display delivery report URL.
File
- tests/
src/ Functional/ SmsFrameworkGatewayAdminTest.php, line 168
Class
- SmsFrameworkGatewayAdminTest
- Tests gateway administration user interface.
Namespace
Drupal\Tests\sms\FunctionalCode
public function testGatewayEditNoDeliveryUrl() {
$this
->drupalLogin($this
->drupalCreateUser([
'administer smsframework',
]));
$test_gateway = $this
->createMemoryGateway([
'plugin' => 'capabilities_default',
]);
$this
->drupalGet(Url::fromRoute('entity.sms_gateway.edit_form', [
'sms_gateway' => $test_gateway
->id(),
]));
$this
->assertResponse(200);
$this
->assertRaw('Edit gateway');
$this
->assertNoFieldByName('delivery_reports[push_path]');
}