From f73eb733ce7532b9adff6bfb8e8f68ea92e81491 Mon Sep 17 00:00:00 2001 From: Lee Mills <8024370+millnut@users.noreply.github.com> Date: Fri, 3 May 2024 20:08:43 +0100 Subject: [PATCH] fix: dynamic property deprecation --- tests/src/Functional/FacetsTest.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/src/Functional/FacetsTest.php b/tests/src/Functional/FacetsTest.php index 15ba1a1..d005a61 100644 --- a/tests/src/Functional/FacetsTest.php +++ b/tests/src/Functional/FacetsTest.php @@ -128,7 +128,7 @@ protected function setUp() :void { 'summary' => 'One of the greatest joys known to man is to take a flight into ignorance in search of knowledge.', ]; - $this->channel_node = $this->createNode([ + $this->channelNode = $this->createNode([ 'title' => 'Directory channel', 'type' => 'localgov_directory', 'status' => NodeInterface::PUBLISHED, @@ -167,7 +167,7 @@ public function testFacetsGroupFilters() { 'status' => NodeInterface::PUBLISHED, 'localgov_directory_channels' => [ [ - 'target_id' => $this->channel_node->id(), + 'target_id' => $this->channelNode->id(), ], ], 'localgov_directory_facets_select' => [ @@ -183,7 +183,7 @@ public function testFacetsGroupFilters() { 'status' => NodeInterface::PUBLISHED, 'localgov_directory_channels' => [ [ - 'target_id' => $this->channel_node->id(), + 'target_id' => $this->channelNode->id(), ], ], 'localgov_directory_facets_select' => [ @@ -199,7 +199,7 @@ public function testFacetsGroupFilters() { 'status' => NodeInterface::PUBLISHED, 'localgov_directory_channels' => [ [ - 'target_id' => $this->channel_node->id(), + 'target_id' => $this->channelNode->id(), ], ], 'localgov_directory_facets_select' => [ @@ -218,7 +218,7 @@ public function testFacetsGroupFilters() { 'status' => NodeInterface::PUBLISHED, 'localgov_directory_channels' => [ [ - 'target_id' => $this->channel_node->id(), + 'target_id' => $this->channelNode->id(), ], ], 'localgov_directory_facets_select' => [ @@ -249,7 +249,7 @@ public function testFacetsGroupFilters() { $this->cronRun(); // Check facets and check the right entries are shown. - $directory_url = $this->channel_node->toUrl()->toString(); + $directory_url = $this->channelNode->toUrl()->toString(); $this->drupalGet($directory_url); // Initially all four should be avalible. @@ -336,7 +336,7 @@ public function testFacetSearchShowsAccessibleFacet() { 'status' => NodeInterface::PUBLISHED, 'localgov_directory_channels' => [ [ - 'target_id' => $this->channel_node->id(), + 'target_id' => $this->channelNode->id(), ], ], 'localgov_directory_facets_select' => [ @@ -358,7 +358,7 @@ public function testFacetSearchShowsAccessibleFacet() { 'status' => NodeInterface::PUBLISHED, 'localgov_directory_channels' => [ [ - 'target_id' => $this->channel_node->id(), + 'target_id' => $this->channelNode->id(), ], ], 'localgov_directory_facets_select' => [ @@ -380,7 +380,7 @@ public function testFacetSearchShowsAccessibleFacet() { 'status' => NodeInterface::PUBLISHED, 'localgov_directory_channels' => [ [ - 'target_id' => $this->channel_node->id(), + 'target_id' => $this->channelNode->id(), ], ], 'localgov_directory_facets_select' => [ @@ -399,7 +399,7 @@ public function testFacetSearchShowsAccessibleFacet() { 'status' => NodeInterface::PUBLISHED, 'localgov_directory_channels' => [ [ - 'target_id' => $this->channel_node->id(), + 'target_id' => $this->channelNode->id(), ], ], 'localgov_directory_facets_select' => [ @@ -421,7 +421,7 @@ public function testFacetSearchShowsAccessibleFacet() { $this->cronRun(); // Check facets and check the right entries are shown. - $directory_url = $this->channel_node->toUrl()->toString(); + $directory_url = $this->channelNode->toUrl()->toString(); $this->drupalGet($directory_url); // Click facet 1.