You are here

private function RestrictIpAccessTest::createArticleContentType in Restrict IP 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/RestrictIpAccessTest.php \Drupal\Tests\restrict_ip\Functional\RestrictIpAccessTest::createArticleContentType()
  2. 3.x tests/src/Functional/RestrictIpAccessTest.php \Drupal\Tests\restrict_ip\Functional\RestrictIpAccessTest::createArticleContentType()
4 calls to RestrictIpAccessTest::createArticleContentType()
RestrictIpAccessTest::testAccessBypassByRole in tests/src/Functional/RestrictIpAccessTest.php
RestrictIpAccessTest::testBlacklistedPaths in tests/src/Functional/RestrictIpAccessTest.php
RestrictIpAccessTest::testRedirectToLoginWhenBypassByRoleEnabled in tests/src/Functional/RestrictIpAccessTest.php
RestrictIpAccessTest::testWhitelistedPaths in tests/src/Functional/RestrictIpAccessTest.php

File

tests/src/Functional/RestrictIpAccessTest.php, line 173

Class

RestrictIpAccessTest
@group restrict_ip

Namespace

Drupal\Tests\restrict_ip\Functional

Code

private function createArticleContentType() {
  $type = $this->container
    ->get('entity_type.manager')
    ->getStorage('node_type')
    ->create([
    'type' => 'article',
    'name' => 'Article',
  ]);
  $type
    ->save();
}