Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
Adapt to last changes in validator (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Dec 12, 2022
1 parent 20ffd89 commit 1b1a386
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/Support/TestCase.php
Expand Up @@ -16,8 +16,6 @@
use Yiisoft\Router\CurrentRoute;
use Yiisoft\Router\Route;
use Yiisoft\Test\Support\Container\SimpleContainer;
use Yiisoft\Translator\Translator;
use Yiisoft\Validator\SimpleRuleHandlerContainer;
use Yiisoft\Validator\Validator;

abstract class TestCase extends BaseTestCase
Expand Down Expand Up @@ -52,7 +50,7 @@ public function createServerRequest(array $body = [], $files = []): ServerReques

public function createRequestModelFactory(ContainerInterface $container): RequestModelFactory
{
$validator = new Validator(new SimpleRuleHandlerContainer(), new Translator('en'));
$validator = new Validator();
return new RequestModelFactory($validator, new Injector($container), $this->getCurrentRoute());
}

Expand Down

0 comments on commit 1b1a386

Please sign in to comment.