private function RestrictIpAccessTest::createArticleContentType in Restrict IP 8.2
Same name and namespace in other branches
- 8 tests/src/Functional/RestrictIpAccessTest.php \Drupal\Tests\restrict_ip\Functional\RestrictIpAccessTest::createArticleContentType()
- 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\FunctionalCode
private function createArticleContentType() {
$type = $this->container
->get('entity_type.manager')
->getStorage('node_type')
->create([
'type' => 'article',
'name' => 'Article',
]);
$type
->save();
}