mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Логика проверки ключа из KeyConfirmationForm вынесена в отдельный валидатор
У EmailActivationFixture зафиксирован стандартный путь к файлу данных
This commit is contained in:
17
tests/codeception/common/_support/ProtectedCaller.php
Normal file
17
tests/codeception/common/_support/ProtectedCaller.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace tests\codeception\common\_support;
|
||||
|
||||
use Codeception\Module;
|
||||
use ReflectionClass;
|
||||
|
||||
trait ProtectedCaller {
|
||||
|
||||
protected function callProtected($object, string $function, ...$args) {
|
||||
$class = new ReflectionClass($object);
|
||||
$method = $class->getMethod($function);
|
||||
$method->setAccessible(true);
|
||||
|
||||
return $method->invokeArgs($object, $args);
|
||||
}
|
||||
|
||||
}
|
@@ -8,6 +8,8 @@ class EmailActivationFixture extends ActiveFixture {
|
||||
|
||||
public $modelClass = EmailActivation::class;
|
||||
|
||||
public $dataFile = '@tests/codeception/common/fixtures/data/email-activations.php';
|
||||
|
||||
public $depends = [
|
||||
AccountFixture::class,
|
||||
];
|
||||
|
Reference in New Issue
Block a user