OXDEV-338 Add test for articleDetails getCaptcha method

This commit is contained in:
Anton Fedurtsya 2017-11-10 09:30:52 +02:00
parent 112aded810
commit 8ea9c5db5d
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<?php
/**
* #PHPHEADER_OECAPTCHA_LICENSE_INFORMATION#
*/
require_once __DIR__ . '/../../../CaptchaTestCase.php';
class oeCaptchaWArticleDetailsTest extends CaptchaTestCase
{
public function testGetCaptcha()
{
$articleDetails = oxNew('oxwarticledetails');
$captcha = $articleDetails->getCaptcha();
$this->assertInstanceOf("oeCaptcha", $captcha);
}
}