diff --git a/.codeception/_support/IntegrationTester.php b/.codeception/_support/IntegrationTester.php deleted file mode 100644 index c6439c85..00000000 --- a/.codeception/_support/IntegrationTester.php +++ /dev/null @@ -1,35 +0,0 @@ - { let controller; beforeEach( () => { + require( '../../../assets/js/hcaptcha-nf.js' ); + // Execute DOMContentLoaded event document.dispatchEvent( new Event( 'DOMContentLoaded' ) ); controller = window.hCaptchaFieldController; diff --git a/.tests/php/integration/AMainTest.php b/.tests/php/integration/AMainTest.php index 4a66d06b..fb28d2af 100644 --- a/.tests/php/integration/AMainTest.php +++ b/.tests/php/integration/AMainTest.php @@ -33,6 +33,7 @@ use HCaptcha\WP\Login; use HCaptcha\WP\LostPassword; use HCaptcha\WP\Register; +use HCaptcha\WPDiscuz\Subscribe; use Mockery; use ReflectionException; use stdClass; @@ -495,6 +496,9 @@ public function test_print_inline_styles() { $url = HCAPTCHA_URL . '/assets/images/hcaptcha-div-logo.svg'; $expected = '