-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature-friendly-captcha-v2' of github.com:80Quattro/fr…
…iendlycaptcha-typo3 into feature-friendly-captcha-v2
- Loading branch information
Showing
4 changed files
with
6 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Add FriendlyCaptcha field to Powermail | ||
tx_powermail.flexForm.type.addFieldOptions { | ||
friendlycaptcha = FriendlyCaptcha | ||
friendlycaptcha = FriendlyCaptcha V2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
|
||
use StudioMitte\FriendlyCaptcha\Tests\RequestTrait; | ||
use StudioMitte\FriendlyCaptcha\ViewHelpers\ConfigurationViewHelper; | ||
use TYPO3\CMS\Fluid\Core\Rendering\RenderingContext; | ||
use TYPO3\TestingFramework\Core\BaseTestCase; | ||
|
||
class ConfigurationViewHelperTest extends BaseTestCase | ||
|
@@ -19,16 +18,14 @@ class ConfigurationViewHelperTest extends BaseTestCase | |
public function viewHelperReturnsProperConfiguration() | ||
{ | ||
self::setupRequest(); | ||
|
||
$renderingContext = new class () extends RenderingContext { | ||
public function __construct() {} | ||
}; | ||
$configurationViewHelper = new ConfigurationViewHelper(); | ||
|
||
self::assertSame([ | ||
'siteKey' => '1234', | ||
'verifyUrl' => 'https://verify,https://verify2', | ||
'puzzleEndpoint' => '', | ||
'jsPath' => 'EXT:friendlycaptcha_official/Resources/Public/JavaScript/lib/[email protected]', | ||
'enabled' => true, | ||
], ConfigurationViewHelper::renderStatic([], static fn() => '', $renderingContext)); | ||
], $configurationViewHelper->render()); | ||
} | ||
} |