Skip to content

Commit 8a1b222

Browse files
committed
test fix
1 parent d100ac9 commit 8a1b222

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/includes/query-builder/QueryBuilderTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,12 +513,15 @@ public function testUpsert(): void
513513
['title' => 'Petit Maman', 'recommended' => 'true', 'runtime' => '72'],
514514
],
515515
'title',
516-
'runtime',
516+
'recommended',
517517
);
518518
// end upsert
519519

520520
$this->assertSame(2, $result);
521+
521522
$this->assertSame(119, DB::collection('movies')->where('title', 'Inspector Maigret')->first()['runtime']);
523+
$this->assertSame(false, DB::collection('movies')->where('title', 'Inspector Maigret')->first()['recommended']);
524+
522525
$this->assertSame(true, DB::collection('movies')->where('title', 'Petit Maman')->first()['recommended']);
523526
$this->assertSame(72, DB::collection('movies')->where('title', 'Petit Maman')->first()['runtime']);
524527
}

docs/query-builder.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ to update or insert documents based on the following instructions:
10711071
- Indicate that the ``title`` field uniquely identifies documents in the
10721072
scope of your operation.
10731073

1074-
- Update only the ``runtime`` field in matched documents.
1074+
- Update only the ``recommended`` field in matched documents.
10751075

10761076
.. literalinclude:: /includes/query-builder/QueryBuilderTest.php
10771077
:language: php

0 commit comments

Comments
 (0)