Skip to content

Commit 5fbac53

Browse files
committed
OXDEV-8213: Add tests to dataProvider for string filter
1 parent 6545d59 commit 5fbac53

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/Unit/DataType/Filter/StringFilterTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,5 +174,17 @@ public static function matchesDataProvider(): \Generator
174174
'stringForFalseCase' => 'this does not start with',
175175
'initFilter' => new StringFilter(beginsWith: 'this start')
176176
];
177+
178+
yield "test match begins with and contains" => [
179+
'stringForTrueCase' => 'this start with abc',
180+
'stringForFalseCase' => 'this does not start with abc',
181+
'initFilter' => new StringFilter(beginsWith: 'this start', contains: 'abc')
182+
];
183+
184+
yield "test match equals and contains" => [
185+
'stringForTrueCase' => 'this is abc',
186+
'stringForFalseCase' => 'this is not abc',
187+
'initFilter' => new StringFilter(equals: 'this is abc', contains: 'abc')
188+
];
177189
}
178190
}

0 commit comments

Comments
 (0)