Skip to content

Commit 232c801

Browse files
committed
Fix invalid data providers
1 parent 40b2dfb commit 232c801

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/Collection/CollectionFunctionalTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ public function testConstructorOptionTypeChecks(array $options): void
6161
new Collection($this->manager, $this->getDatabaseName(), $this->getCollectionName(), $options);
6262
}
6363

64-
public function provideInvalidConstructorOptions(): void
64+
public function provideInvalidConstructorOptions(): array
6565
{
66-
$this->createOptionDataProvider([
66+
return $this->createOptionDataProvider([
6767
'readConcern' => $this->getInvalidReadConcernValues(),
6868
'readPreference' => $this->getInvalidReadPreferenceValues(),
6969
'typeMap' => $this->getInvalidArrayValues(),

tests/Command/ListCollectionsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ public function testConstructorOptionTypeChecks(array $options): void
1515
new ListCollections($this->getDatabaseName(), $options);
1616
}
1717

18-
public function provideInvalidConstructorOptions(): void
18+
public function provideInvalidConstructorOptions(): array
1919
{
20-
$this->createOptionDataProvider([
20+
return $this->createOptionDataProvider([
2121
'authorizedCollections' => $this->getInvalidBooleanValues(),
2222
'filter' => $this->getInvalidDocumentValues(),
2323
'maxTimeMS' => $this->getInvalidIntegerValues(),

0 commit comments

Comments
 (0)