You are here

public function ResponseTest::testGetAction in reCAPTCHA 7.2

File

recaptcha-php/tests/ReCaptcha/ResponseTest.php, line 144

Class

ResponseTest

Namespace

ReCaptcha

Code

public function testGetAction() {
  $action = 'homepage';
  $response = new Response(true, array(), 'hostname', 'timestamp', 'apk', '0.5', 'homepage');
  $this
    ->assertEquals($action, $response
    ->getAction());
}