Skip to content

Commit 8f93eee

Browse files
committed
Use more descriptive value in failing tests
1 parent 7263a62 commit 8f93eee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Operation/InsertManyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ public function testCodecRejectsInvalidDocuments(): void
5353
{
5454
$this->expectExceptionObject(UnsupportedValueException::invalidEncodableValue([]));
5555

56-
new InsertMany($this->getDatabaseName(), $this->getCollectionName(), [[]], ['codec' => new TestDocumentCodec()]);
56+
new InsertMany($this->getDatabaseName(), $this->getCollectionName(), [['x' => 1]], ['codec' => new TestDocumentCodec()]);
5757
}
5858
}

tests/Operation/InsertOneTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ public function testCodecRejectsInvalidDocuments(): void
3737
{
3838
$this->expectExceptionObject(UnsupportedValueException::invalidEncodableValue([]));
3939

40-
new InsertOne($this->getDatabaseName(), $this->getCollectionName(), [], ['codec' => new TestDocumentCodec()]);
40+
new InsertOne($this->getDatabaseName(), $this->getCollectionName(), ['x' => 1], ['codec' => new TestDocumentCodec()]);
4141
}
4242
}

0 commit comments

Comments
 (0)