Skip to content

Commit 2434978

Browse files
committed
Stabilise test as field isn't needed
1 parent 7696ca0 commit 2434978

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tests/PHPUnit/System/TimezonesTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ public function getApiForTesting()
5252
'filter_limit' => 100,
5353
'doNotFetchActions' => 1,
5454
],
55+
'xmlFieldsToRemove' => [
56+
'idVisit',
57+
],
5558
'testSuffix' => '_yesterday' . $appendix,
5659
],
5760
];
@@ -65,6 +68,9 @@ public function getApiForTesting()
6568
'filter_limit' => 100,
6669
'doNotFetchActions' => 1,
6770
],
71+
'xmlFieldsToRemove' => [
72+
'idVisit',
73+
],
6874
'testSuffix' => '_today' . $appendix,
6975
],
7076
];
@@ -78,6 +84,9 @@ public function getApiForTesting()
7884
'filter_limit' => 100,
7985
'doNotFetchActions' => 1,
8086
],
87+
'xmlFieldsToRemove' => [
88+
'idVisit',
89+
],
8190
'testSuffix' => '_range' . $appendix,
8291
],
8392
];
@@ -92,6 +101,9 @@ public function getApiForTesting()
92101
'doNotFetchActions' => 1,
93102
],
94103
'segment' => 'pageUrl=@example.org;pageUrl=@index',
104+
'xmlFieldsToRemove' => [
105+
'idVisit',
106+
],
95107
'testSuffix' => '_range' . $appendix, // using same suffix as results are the same
96108
],
97109
];
@@ -106,6 +118,9 @@ public function getApiForTesting()
106118
'doNotFetchActions' => 1,
107119
],
108120
'segment' => 'pageUrl=@example.org;pageUrl!@index',
121+
'xmlFieldsToRemove' => [
122+
'idVisit',
123+
],
109124
'testSuffix' => '_range_nomatch' . $appendix, // this segment should match nothing
110125
],
111126
];

0 commit comments

Comments
 (0)