Adjusted test to accommodate format
It seems like AYAH changed the format of the script URL being returned. I made the last part optional in case the last part of the URL still shows up in legacy type scenarios.
This commit is contained in:
parent
df19a61ab7
commit
018ae0edc1
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class API_AYAHTest extends PHPUnit_Framework_TestCase
|
||||||
'scoring_key' => '80cc3f9c6e1da29369c238d55bd8528a968473ad',
|
'scoring_key' => '80cc3f9c6e1da29369c238d55bd8528a968473ad',
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->assertRegExp('/<div id=\'AYAH\'><\/div><script src=\'https:\/\/ws.areyouahuman.com\/ws\/script\/[a-z0-9]{40}\/[a-zA-Z0-9]{45}\' type=\'text\/javascript\' language=\'JavaScript\'><\/script>/', API_AYAH::getHTML());
|
$this->assertRegExp('/<div id=\'AYAH\'><\/div><script src=\'https:\/\/ws.areyouahuman.com\/ws\/script\/[a-z0-9]{40}(\/[a-zA-Z0-9]{45})?\' type=\'text\/javascript\' language=\'JavaScript\'><\/script>/', API_AYAH::getHTML());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testIsNotHuman()
|
public function testIsNotHuman()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue