You are here

public function Ip2CountryResourceTest::setUp in IP-based Determination of a Visitor's Country 8

@todo This should be 'protected', but the Drupal core REST module test base improperly overrides it to be public which requires that we also use the wrong visibility here. Restore 'protected' when core gets fixed.

Overrides ResourceTestBase::setUp

File

tests/src/Functional/Ip2CountryResourceTest.php, line 55

Class

Ip2CountryResourceTest
Tests the Ip2Country REST resource.

Namespace

Drupal\Tests\ip2country\Functional

Code

public function setUp() {
  parent::setUp();
  $auth = isset(static::$auth) ? [
    static::$auth,
  ] : [];
  $this
    ->provisionResource([
    static::$format,
  ], $auth);
}