We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff4b78d commit e5c44faCopy full SHA for e5c44fa
1 file changed
tests/functional/google_analytics_test.php
@@ -47,14 +47,14 @@ public function test_set_acp_settings()
47
48
// Test that GA settings field is found in the correct position (after OVERRIDE_STYLE)
49
$nodes = $crawler->filter('#acp_board > fieldset > dl > dt > label')->extract(array('_text'));
50
- foreach ($nodes as $config_name)
+ foreach ($nodes as $key => $config_name)
51
{
52
if (strpos($config_name, $this->lang('OVERRIDE_STYLE')) !== 0)
53
54
continue;
55
}
56
57
- $this->assertContainsLang('ACP_GOOGLEANALYTICS_ID', current($nodes));
+ $this->assertContainsLang('ACP_GOOGLEANALYTICS_ID', $nodes[$key + 1]);
58
59
60
// Set GA form values
0 commit comments