Skip to content

Commit e5c44fa

Browse files
committed
More clearly test next array value
1 parent ff4b78d commit e5c44fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/functional/google_analytics_test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ public function test_set_acp_settings()
4747

4848
// Test that GA settings field is found in the correct position (after OVERRIDE_STYLE)
4949
$nodes = $crawler->filter('#acp_board > fieldset > dl > dt > label')->extract(array('_text'));
50-
foreach ($nodes as $config_name)
50+
foreach ($nodes as $key => $config_name)
5151
{
5252
if (strpos($config_name, $this->lang('OVERRIDE_STYLE')) !== 0)
5353
{
5454
continue;
5555
}
5656

57-
$this->assertContainsLang('ACP_GOOGLEANALYTICS_ID', current($nodes));
57+
$this->assertContainsLang('ACP_GOOGLEANALYTICS_ID', $nodes[$key + 1]);
5858
}
5959

6060
// Set GA form values

0 commit comments

Comments
 (0)