Skip to content

Commit a2715b1

Browse files
committed
Document argument and fix assert message in assertIndexExists()
1 parent 3dbbd79 commit a2715b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Operation/CreateIndexesFunctionalTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ public function testCreateConflictingIndexesWithLegacyInsert()
165165
* given name is found, it will be passed to the callback, which may perform
166166
* additional assertions.
167167
*
168+
* @param string $indexName
168169
* @param callable $callback
169170
*/
170171
private function assertIndexExists($indexName, $callback = null)
@@ -185,7 +186,7 @@ private function assertIndexExists($indexName, $callback = null)
185186
}
186187
}
187188

188-
$this->assertNotNull($foundIndex, sprintf('Found %s index for the collection', $indexName));
189+
$this->assertNotNull($foundIndex, sprintf('Index %s does not exist', $indexName));
189190

190191
if ($callback !== null) {
191192
call_user_func($callback, $foundIndex);

0 commit comments

Comments
 (0)