Skip to content

Commit 6c93d6d

Browse files
committed
fix tests?
1 parent a69ed4b commit 6c93d6d

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

docs/includes/usage-examples/CountTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public function testCount(): void
4646
// end-qb-count
4747

4848
$this->assertEquals(2, $count);
49-
$this->expectOutputString('Number of documents: 2');
49+
$this->expectOutputString('Number of documents: 2Number of documents: 2');
5050
}
5151
}

docs/includes/usage-examples/DeleteManyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testDeleteMany(): void
3838
// end-eloquent-delete-many
3939

4040
$this->assertEquals(2, $deleted);
41-
$this->expectOutputString('Deleted documents: 2');
41+
$this->expectOutputString('Deleted documents: 2Deleted documents: 0');
4242

4343
// begin-qb-delete-many
4444
$deleted = DB::table('movies')

docs/includes/usage-examples/DeleteOneTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testDeleteOne(): void
3636
// end-eloquent-delete-one
3737

3838
$this->assertEquals(1, $deleted);
39-
$this->expectOutputString('Deleted documents: 1');
39+
$this->expectOutputString('Deleted documents: 1Deleted documents: 0');
4040

4141
// begin-qb-delete-one
4242
$deleted = DB::table('movies')

docs/includes/usage-examples/DistinctTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ public function testDistinct(): void
6565
echo $ratings;
6666
// end-qb-distinct
6767

68-
$this->expectOutputString('[[6.4],[7.8]]');
68+
$this->expectOutputString('[[6.4],[7.8]][6.4,7.8]');
6969
}
7070
}

docs/includes/usage-examples/FindOneTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testFindOne(): void
4040
->orderBy('_id')
4141
->first();
4242

43-
echo $movie->toJson();
43+
echo $movie;
4444
// end-qb-find-one
4545
}
4646
}

docs/includes/usage-examples/InsertManyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ public function testInsertMany(): void
6262
// end-qb-insert-many
6363

6464
$this->assertTrue($success);
65-
$this->expectOutputString('Insert operation success: yes');
65+
$this->expectOutputString('Insert operation success: yesInsert operation success: yes');
6666
}
6767
}

docs/usage-examples/distinct.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@ each corresponding query syntax:
110110
:language: console
111111
:visible: false
112112

113-
[[5.6],[6.4],[7.2],[7.8]]
113+
[5.6,6.4,7.2,7.8]
114114

115115
.. include:: /includes/usage-examples/fact-edit-laravel-app.rst

0 commit comments

Comments
 (0)