12 'class' => HTMLReCaptchaField::class,
17 $mockClosure = $this->getMockBuilder( stdClass::class )
18 ->setMethods( [
'__invoke' ] )->getMock();
19 $mockClosure->expects( $this->once() )->method(
'__invoke' )
20 ->with( [] )->willReturn(
true );
22 $form->setTitle( Title::newFromText(
'Title' ) );
23 $form->setSubmitCallback( $mockClosure );