Skip to content

Commit 478031f

Browse files
committed
Add Unit Tests to verify backslash handling and fix Static Tests failure
1 parent 959e8f0 commit 478031f

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

app/code/Magento/Ui/Component/Filters/Type/Input.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2025 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Ui\Component\Filters\Type;
77

app/code/Magento/Ui/Test/Unit/Component/Filters/Type/InputTest.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2025 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -221,6 +221,16 @@ public static function getPrepareDataProvider(): array
221221
'setValue' => '%\%%',
222222
],
223223
],
224+
[
225+
[
226+
'name' => 'test_date',
227+
],
228+
['test_date' => 'some\\value'],
229+
[
230+
'setConditionType' => 'like',
231+
'setValue' => '%some\\\\value%',
232+
],
233+
],
224234
[
225235
[
226236
'name' => 'text_attr',

0 commit comments

Comments
 (0)