Skip to content

Commit 5db42fb

Browse files
ShradddhaShradddha
authored andcommitted
AC-12092:: Remove Deprecations- PhpUnit10 Unit Tests
1 parent 4458fb3 commit 5db42fb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ReCaptchaPaypal/Test/Unit/Observer/PayPalObserverTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function testExecute(array $mocks): void
114114
$this->model->execute($this->observer);
115115
}
116116

117-
public function executeDataProvider(): array
117+
public static function executeDataProvider(): array
118118
{
119119
return [
120120
[
@@ -131,7 +131,7 @@ public function executeDataProvider(): array
131131
'reCaptchaSession' => [
132132
[
133133
'method' => 'save',
134-
'expects' => $this->never(),
134+
'expects' => self::never(),
135135
]
136136
]
137137
]
@@ -150,20 +150,20 @@ public function executeDataProvider(): array
150150
'reCaptchaSession' => [
151151
[
152152
'method' => 'save',
153-
'expects' => $this->never(),
153+
'expects' => self::never(),
154154
]
155155
],
156156
'captchaValidator' => [
157157
[
158158
'method' => 'isValid',
159-
'expects' => $this->once(),
159+
'expects' => self::once(),
160160
'willReturnProperty' => 'validationResult'
161161
]
162162
],
163163
'validationResult' => [
164164
[
165165
'method' => 'isValid',
166-
'expects' => $this->once(),
166+
'expects' => self::once(),
167167
'willReturn' => true,
168168
]
169169
]
@@ -183,20 +183,20 @@ public function executeDataProvider(): array
183183
'reCaptchaSession' => [
184184
[
185185
'method' => 'save',
186-
'expects' => $this->once(),
186+
'expects' => self::once(),
187187
]
188188
],
189189
'captchaValidator' => [
190190
[
191191
'method' => 'isValid',
192-
'expects' => $this->once(),
192+
'expects' => self::once(),
193193
'willReturnProperty' => 'validationResult'
194194
]
195195
],
196196
'validationResult' => [
197197
[
198198
'method' => 'isValid',
199-
'expects' => $this->once(),
199+
'expects' => self::once(),
200200
'willReturn' => true,
201201
]
202202
]

0 commit comments

Comments
 (0)