summaryrefslogtreecommitdiffstats
path: root/core_search_facets/src/Tests/HooksTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core_search_facets/src/Tests/HooksTest.php')
-rw-r--r--core_search_facets/src/Tests/HooksTest.php26
1 files changed, 11 insertions, 15 deletions
diff --git a/core_search_facets/src/Tests/HooksTest.php b/core_search_facets/src/Tests/HooksTest.php
index bc9572d..66fa934 100644
--- a/core_search_facets/src/Tests/HooksTest.php
+++ b/core_search_facets/src/Tests/HooksTest.php
@@ -29,23 +29,19 @@ class HooksTest extends WebTestBase {
parent::setUp();
// Create a field of type float.
- FieldStorageConfig::create(
- [
- 'field_name' => 'float',
- 'entity_type' => 'node',
- 'type' => 'float',
- ]
- )->save();
+ FieldStorageConfig::create([
+ 'field_name' => 'float',
+ 'entity_type' => 'node',
+ 'type' => 'float',
+ ])->save();
// Create an instance of the float field on the "page" content type.
- FieldConfig::create(
- [
- 'field_name' => 'float',
- 'entity_type' => 'node',
- 'bundle' => 'page',
- 'label' => 'Float Field Label',
- ]
- )->save();
+ FieldConfig::create([
+ 'field_name' => 'float',
+ 'entity_type' => 'node',
+ 'bundle' => 'page',
+ 'label' => 'Float Field Label',
+ ])->save();
// Log in, so we can test all the things.
$this->drupalLogin($this->adminUser);