diff --git a/core/modules/node/src/Tests/NodeTypeTest.php b/core/modules/node/src/Tests/NodeTypeTest.php
index a4677db..9d8fbb2 100644
--- a/core/modules/node/src/Tests/NodeTypeTest.php
+++ b/core/modules/node/src/Tests/NodeTypeTest.php
@@ -23,7 +23,7 @@ class NodeTypeTest extends NodeTestBase {
*
* @var array
*/
- public static $modules = array('node', 'field_ui');
+ public static $modules = ['node', 'field_ui'];
/**
* Ensures that node type functions (node_type_get_*) work correctly.
@@ -210,27 +210,27 @@ public function testNodeTypeFieldUiPermissions() {
* Tests for when there are no content types defined.
*/
public function testNodeTypeNoContentType() {
- $web_user = $this->drupalCreateUser(array('administer content types'));
+ $web_user = $this->drupalCreateUser(['administer content types']);
$this->drupalLogin($web_user);
// Delete 'article' bundle.
- $this->drupalPostForm('admin/structure/types/manage/article/delete', array(), t('Delete'));
+ $this->drupalPostForm('admin/structure/types/manage/article/delete', [], t('Delete'));
// Delete 'page' bundle.
- $this->drupalPostForm('admin/structure/types/manage/page/delete', array(), t('Delete'));
+ $this->drupalPostForm('admin/structure/types/manage/page/delete', [], t('Delete'));
// Navigate to content type administration screen
$this->drupalGet('admin/structure/types');
- $this->assertRaw(t('No content types available. Add content type.', array(
+ $this->assertRaw(t('No content types available. Add content type.', [
'@link' => Url::fromRoute('node.type_add')->toString()
- )), 'Empty text when there are no content types in the system is correct.');
+ ]), 'Empty text when there are no content types in the system is correct.');
//Add content types back in so other tests have the expected environment
- $this->drupalCreateContentType(array(
- 'type' => 'page',
- 'name' => 'Basic page',
- 'display_submitted' => FALSE,
- ));
- $this->drupalCreateContentType(array('type' => 'article', 'name' => 'Article'));
+ $this->drupalCreateContentType([
+ 'type' => 'page',
+ 'name' => 'Basic page',
+ 'display_submitted' => FALSE,
+ ]);
+ $this->drupalCreateContentType(['type' => 'article', 'name' => 'Article']);
}
}