From 706b5c3fb6e9d911c147c92fc768df86990d09ea Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 8 Nov 2016 15:56:39 +0100 Subject: Use a php class for the definitions to avoid loading problems Signed-off-by: Joas Schilling --- tests/lib/RichObjectStrings/ValidatorTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/lib/RichObjectStrings/ValidatorTest.php') 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' => [ -- cgit v1.2.3