You are here

protected function SmsFrameworkIncomingBrowserTest::setUp in SMS Framework 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/SmsFrameworkIncomingBrowserTest.php \Drupal\Tests\sms\Functional\SmsFrameworkIncomingBrowserTest::setUp()
  2. 2.1.x tests/src/Functional/SmsFrameworkIncomingBrowserTest.php \Drupal\Tests\sms\Functional\SmsFrameworkIncomingBrowserTest::setUp()

Overrides SmsFrameworkBrowserTestBase::setUp

File

tests/src/Functional/SmsFrameworkIncomingBrowserTest.php, line 31

Class

SmsFrameworkIncomingBrowserTest
Tests incoming route endpoint.

Namespace

Drupal\Tests\sms\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->httpClient = $this->container
    ->get('http_client');
  $this->incomingGateway = $this
    ->createMemoryGateway([
    'plugin' => 'incoming',
  ]);
  $this->incomingGateway
    ->setSkipQueue(TRUE)
    ->save();
  $this->container
    ->get('router.builder')
    ->rebuild();
}