summaryrefslogtreecommitdiffstats
path: root/tests/lib/RichObjectStrings/ValidatorTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/RichObjectStrings/ValidatorTest.php')
-rw-r--r--tests/lib/RichObjectStrings/ValidatorTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/RichObjectStrings/ValidatorTest.php b/tests/lib/RichObjectStrings/ValidatorTest.php
index b97388ab8e0..f18d1bdd908 100644
--- a/tests/lib/RichObjectStrings/ValidatorTest.php
+++ b/tests/lib/RichObjectStrings/ValidatorTest.php
@@ -23,12 +23,13 @@ namespace Test\RichObjectStrings;
use OC\RichObjectStrings\Validator;
+use OCP\RichObjectStrings\Definitions;
use Test\TestCase;
class ValidatorTest extends TestCase {
public function test() {
- $v = new Validator();
+ $v = new Validator(new Definitions());
$v->validate('test', []);
$v->validate('test {string1} test {foo} test {bar}.', [
'string1' => [