summaryrefslogtreecommitdiffstats
path: root/tests/lib/RichObjectStrings/ValidatorTest.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-11-09 13:53:54 +0100
committerGitHub <noreply@github.com>2016-11-09 13:53:54 +0100
commiteadccc239a91490e1165dcc5a94c8c4845a3f66a (patch)
treed2409b6984716734074b892d410af7a9e52e388e /tests/lib/RichObjectStrings/ValidatorTest.php
parent6a75296ccbd37d11f88f1e69cfe4063a802c438c (diff)
parent9305094b8b10a3160dc2200934e86010fadd9a02 (diff)
downloadnextcloud-server-eadccc239a91490e1165dcc5a94c8c4845a3f66a.tar.gz
nextcloud-server-eadccc239a91490e1165dcc5a94c8c4845a3f66a.zip
Merge pull request #2052 from nextcloud/ros-definitions-as-php-class
Use a php class for the definitions to avoid loading problems
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' => [