Skip to content

Commit db4c98e

Browse files
committed
Fix missing options
1 parent f1ab8b7 commit db4c98e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/Operation/CreateSearchIndexesTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,38 @@ public function testConstructorIndexesArgumentMustBeAList(): void
1111
{
1212
$this->expectException(InvalidArgumentException::class);
1313
$this->expectExceptionMessage('$indexes is not a list');
14-
new CreateSearchIndexes($this->getDatabaseName(), $this->getCollectionName(), [1 => ['name' => 'index name', 'definition' => ['mappings' => ['dynamic' => true]]]]);
14+
new CreateSearchIndexes($this->getDatabaseName(), $this->getCollectionName(), [1 => ['name' => 'index name', 'definition' => ['mappings' => ['dynamic' => true]]]], []);
1515
}
1616

1717
/** @dataProvider provideInvalidIndexSpecificationTypes */
1818
public function testConstructorIndexDefinitionMustBeADocument($index): void
1919
{
2020
$this->expectException(InvalidArgumentException::class);
2121
$this->expectExceptionMessage('Expected $indexes[0] to have type "document"');
22-
new CreateSearchIndexes($this->getDatabaseName(), $this->getCollectionName(), [$index]);
22+
new CreateSearchIndexes($this->getDatabaseName(), $this->getCollectionName(), [$index], []);
2323
}
2424

2525
/** @dataProvider provideInvalidStringValues */
2626
public function testConstructorIndexNameMustBeAString($name): void
2727
{
2828
$this->expectException(InvalidArgumentException::class);
2929
$this->expectExceptionMessage('Expected "name" option to have type "string"');
30-
new CreateSearchIndexes($this->getDatabaseName(), $this->getCollectionName(), [['name' => $name, 'definition' => ['mappings' => ['dynamic' => true]]]]);
30+
new CreateSearchIndexes($this->getDatabaseName(), $this->getCollectionName(), [['name' => $name, 'definition' => ['mappings' => ['dynamic' => true]]]], []);
3131
}
3232

3333
public function testConstructorIndexDefinitionMustBeDefined(): void
3434
{
3535
$this->expectException(InvalidArgumentException::class);
3636
$this->expectExceptionMessage('Required "definition" document is missing from search index specification');
37-
new CreateSearchIndexes($this->getDatabaseName(), $this->getCollectionName(), [['name' => 'index name']]);
37+
new CreateSearchIndexes($this->getDatabaseName(), $this->getCollectionName(), [['name' => 'index name']], []);
3838
}
3939

4040
/** @dataProvider provideInvalidDocumentValues */
4141
public function testConstructorIndexDefinitionMustBeAnArray($definition): void
4242
{
4343
$this->expectException(InvalidArgumentException::class);
4444
$this->expectExceptionMessage('Expected "definition" option to have type "document"');
45-
new CreateSearchIndexes($this->getDatabaseName(), $this->getCollectionName(), [['definition' => $definition]]);
45+
new CreateSearchIndexes($this->getDatabaseName(), $this->getCollectionName(), [['definition' => $definition]], []);
4646
}
4747

4848
public function provideInvalidIndexSpecificationTypes(): array

0 commit comments

Comments
 (0)