Skip to content

Commit 1a2f7a5

Browse files
committed
Fix model name
1 parent 915a64c commit 1a2f7a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/includes/fundamentals/as-avs/AtlasSearchTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use MongoDB\Builder\Search;
1111
use MongoDB\Driver\Exception\ServerException;
1212
use MongoDB\Laravel\Schema\Builder;
13-
use MongoDB\Laravel\Tests\Models\Book;
1413
use MongoDB\Laravel\Tests\TestCase;
1514
use PHPUnit\Framework\Attributes\Group;
1615

@@ -132,7 +131,7 @@ public function testAutocompleteSearch(): void
132131
*/
133132
public function testVectorSearch(): void
134133
{
135-
$results = Book::vectorSearch(
134+
$results = Movie::vectorSearch(
136135
index: 'vector',
137136
path: 'vector4',
138137
queryVector: $this->vectors[0],
@@ -144,7 +143,7 @@ public function testVectorSearch(): void
144143
);
145144

146145
$this->assertNotNull($results);
147-
$this->assertSame('C', $results->first()->title);
146+
$this->assertSame('D', $results->first()->title);
148147
}
149148

150149
/** Generates random vectors using fixed seed to make tests deterministic */

0 commit comments

Comments
 (0)