diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2025-01-05 22:59:29 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2025-01-06 12:47:39 +0000 |
| commit | 24cb7547cb882ddc3e5b99cdff164831ef80290c (patch) | |
| tree | 98e5b0ad6c11771ae5ed86c89965027fd1ddc4ef /tests/app/Elements/XrefLocationTest.php | |
| parent | ab70d7f0caddd7fcd86d1f539eafdf19f1e65698 (diff) | |
| download | webtrees-24cb7547cb882ddc3e5b99cdff164831ef80290c.tar.gz webtrees-24cb7547cb882ddc3e5b99cdff164831ef80290c.tar.bz2 webtrees-24cb7547cb882ddc3e5b99cdff164831ef80290c.zip | |
Working on phpstan issues in test scripts
Diffstat (limited to 'tests/app/Elements/XrefLocationTest.php')
| -rw-r--r-- | tests/app/Elements/XrefLocationTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/app/Elements/XrefLocationTest.php b/tests/app/Elements/XrefLocationTest.php index 2d351a774b..4d520dd22c 100644 --- a/tests/app/Elements/XrefLocationTest.php +++ b/tests/app/Elements/XrefLocationTest.php @@ -58,8 +58,10 @@ class XrefLocationTest extends TestCase $select_nodes = $dom->getElementsByTagName('select'); self::assertEquals(1, $select_nodes->count()); - $option_nodes = $select_nodes[0]->getElementsByTagName('option'); - self::assertEquals(1, $option_nodes->count()); + foreach ($select_nodes as $select_node) { + $option_nodes = $select_node->getElementsByTagName('option'); + self::assertEquals(1, $option_nodes->count()); + } } public function testEscape(): void |
