@@ -24,7 +24,7 @@ public function testView()
24
24
$ _service = new GoogleReCaptchaV3Service ($ configStub , $ clientStub );
25
25
$ service = new GoogleReCaptchaV3 ($ _service );
26
26
27
- $ service ->renderOne ('contact_us_id ' , 'contact_us ' );
27
+ $ service ->renderOne ('contact_us_id66 ' , 'contact_us ' );
28
28
$ data = $ service ->init ();
29
29
$ this ->assertEquals (null , $ data );
30
30
}
@@ -43,11 +43,11 @@ public function testView1()
43
43
$ _service = new GoogleReCaptchaV3Service ($ configStub , $ clientStub );
44
44
$ service = new GoogleReCaptchaV3 ($ _service );
45
45
46
- $ service ->renderOne ('contact_us_id ' , 'contact_us ' );
47
- $ service ->render (['contact_us_id1 ' => 'contact_us ' ]);
46
+ $ service ->renderOne ('contact_us_id77 ' , 'contact_us ' );
47
+ $ service ->render (['contact_us_id88 ' => 'contact_us ' ]);
48
48
$ data = $ service ::$ collection ;
49
- $ this ->assertEquals ('contact_us ' ,$ data ['contact_us_id ' ]);
50
- $ this ->assertEquals ('contact_us ' ,$ data ['contact_us_id1 ' ]);
49
+ $ this ->assertEquals ('contact_us ' ,$ data ['contact_us_id77 ' ]);
50
+ $ this ->assertEquals ('contact_us ' ,$ data ['contact_us_id88 ' ]);
51
51
}
52
52
53
53
public function testView2 ()
@@ -80,33 +80,5 @@ public function testView2()
80
80
$ this ->assertEquals ('en ' , $ data ['language ' ]);
81
81
}
82
82
83
- public function testView4 ()
84
- {
85
- // Create a stub for the SomeClass class.
86
- $ configStub = $ this ->createMock (ReCaptchaConfigV3::class);
87
-
88
- // Configure the stub.
89
- $ configStub ->method ('isServiceEnabled ' )
90
- ->willReturn (true );
91
-
92
- $ configStub ->method ('getSiteKey ' )
93
- ->willReturn ('test1 ' );
94
-
95
- $ configStub ->method ('isInline ' )
96
- ->willReturn (false );
97
-
98
- $ configStub ->method ('getLanguage ' )
99
- ->willReturn ('en ' );
100
-
101
- $ configStub ->method ('getBackgroundBadgeDisplay ' )
102
- ->willReturn (false );
103
83
104
- $ clientStub = $ this ->createMock (GuzzleRequestClient::class);
105
-
106
- $ _service = new GoogleReCaptchaV3Service ($ configStub , $ clientStub );
107
- $ service = new GoogleReCaptchaV3 ($ _service );
108
- $ data = $ service ->prepareData ();
109
- $ this ->assertEquals (false , $ data ['display ' ]);
110
- $ this ->assertEquals ('test1 ' , $ data ['publicKey ' ]);
111
- }
112
84
}
0 commit comments