diff --git a/src/Tests/SmsFrameworkWebTest.php b/src/Tests/SmsFrameworkWebTest.php index 5467c75..6683724 100644 --- a/src/Tests/SmsFrameworkWebTest.php +++ b/src/Tests/SmsFrameworkWebTest.php @@ -13,7 +13,7 @@ namespace Drupal\sms\Tests; * @group SMS Framework */ class SmsFrameworkWebTest extends SmsFrameworkWebTestBase { - + /** * Tests the HookGateway implementation. */ diff --git a/src/Tests/SmsFrameworkWebTestBase.php b/src/Tests/SmsFrameworkWebTestBase.php index fafc8a8..b4aabec 100644 --- a/src/Tests/SmsFrameworkWebTestBase.php +++ b/src/Tests/SmsFrameworkWebTestBase.php @@ -12,7 +12,7 @@ use \Drupal\simpletest\WebTestBase; /** * Provides commonly used functionality for tests. */ -class SmsFrameworkWebTestBase extends WebTestBase { +abstract class SmsFrameworkWebTestBase extends WebTestBase { public static $modules = ['sms', 'sms_test_gateway']; @@ -23,6 +23,9 @@ class SmsFrameworkWebTestBase extends WebTestBase { */ protected $gatewayManager; + /** + * {@inheritdoc} + */ public function setUp() { parent::setUp(); $this->gatewayManager = $this->container->get('plugin.manager.sms_gateway'); @@ -30,6 +33,12 @@ class SmsFrameworkWebTestBase extends WebTestBase { $this->gatewayManager->addGateway('test', ['name' => 'test']); } + /** + * Sets the specified gateway as the default. + * + * @param string $gateway_id + * The ID of the gateway to be set as default. + */ public function setDefaultGateway($gateway_id) { // Ensure gateway is enabled first. $this->gatewayManager->setEnabledGateways([$gateway_id]);