Skip to content

Commit febcc28

Browse files
authored
Replaced deprecated FieldNameResolver::getFieldNames method with FieldNameResolver::getFieldTypes (#88)
1 parent dce30f6 commit febcc28

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

tests/lib/Search/Query/Content/CriterionVisitor/FullTextTest.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,11 @@ class FullTextTest extends TestCase
2828
{
2929
protected function getFullTextCriterionVisitor(array $fieldTypes = [], int $maxDepth = 0)
3030
{
31-
$fieldNames = array_keys($fieldTypes);
3231
$fieldNameResolver = $this->getMockBuilder(FieldNameResolver::class)
3332
->disableOriginalConstructor()
34-
->setMethods(['getFieldNames', 'getFieldTypes'])
33+
->setMethods(['getFieldTypes'])
3534
->getMock();
3635

37-
$fieldNameResolver
38-
->expects(self::any())
39-
->method('getFieldNames')
40-
->with(
41-
self::isInstanceOf(Criterion::class),
42-
self::isType('string')
43-
)
44-
->willReturn(
45-
$fieldNames
46-
);
47-
4836
$fieldNameResolver
4937
->expects(self::any())
5038
->method('getFieldTypes')

0 commit comments

Comments
 (0)