From fd156d3408a030c6bb98d9cdaf3790375d766eb5 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 8 Apr 2025 11:38:25 +0200 Subject: refactor(RichObjectStrings): Only log error if key or value is not string in validator Signed-off-by: provokateurin --- tests/lib/RichObjectStrings/ValidatorTest.php | 5 ----- 1 file changed, 5 deletions(-) (limited to 'tests/lib/RichObjectStrings/ValidatorTest.php') diff --git a/tests/lib/RichObjectStrings/ValidatorTest.php b/tests/lib/RichObjectStrings/ValidatorTest.php index c5f88394a33..cbd54a0374c 100644 --- a/tests/lib/RichObjectStrings/ValidatorTest.php +++ b/tests/lib/RichObjectStrings/ValidatorTest.php @@ -10,7 +10,6 @@ namespace Test\RichObjectStrings; use OC\RichObjectStrings\Validator; use OCP\RichObjectStrings\Definitions; -use OCP\RichObjectStrings\InvalidObjectExeption; use Test\TestCase; class ValidatorTest extends TestCase { @@ -37,9 +36,6 @@ class ValidatorTest extends TestCase { ]); $this->addToAssertionCount(2); - $this->expectException(InvalidObjectExeption::class); - - $this->expectExceptionMessage('Object for placeholder string1 is invalid, value 123 for key key is not a string'); $v->validate('test {string1} test.', [ 'string1' => [ 'type' => 'user', @@ -49,7 +45,6 @@ class ValidatorTest extends TestCase { ], ]); - $this->expectExceptionMessage('Object for placeholder string1 is invalid, key 456 is not a string'); $v->validate('test {string1} test.', [ 'string1' => [ 'type' => 'user', -- cgit v1.2.3