Skip to content

Commit

Permalink
Spec test update
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Jul 24, 2023
1 parent 53fe51c commit bb7cb09
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/Collection/SearchIndexFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,22 +146,6 @@ public function testDropSearchIndexSuppressNamespaceNotFoundError(): void
$this->expectNotToPerformAssertions();
}

public function testCreateSearchIndexesWithEmptyList(): void
{
$collection = $this->createCollection($this->getDatabaseName(), $this->getCollectionName());
$names = $collection->createSearchIndexes([]);

$this->assertSame([], $names);
}

public function testCreateSearchIndexWithDefaultName(): void
{
$collection = $this->createCollection($this->getDatabaseName(), $this->getCollectionName());
$name = $collection->createSearchIndex(['mappings' => ['dynamic' => true]]);

$this->assertSame('default', $name);
}

/**
* Randomize the collection name to avoid duplicate index names when running tests concurrently.
* Search index operations are asynchronous and can take up to 1 minute.
Expand Down Expand Up @@ -197,10 +181,6 @@ private function allIndexesAreQueryable(array $indexes): bool
if (! $index->queryable) {
return false;
}

if ($index->status !== 'READY') {
return false;
}
}

return true;
Expand Down

0 comments on commit bb7cb09

Please sign in to comment.