Skip to content

Commit 85bef16

Browse files
committed
Split IndexManagementFunctionalTest into Operation tests
1 parent ce26ec3 commit 85bef16

7 files changed

+360
-203
lines changed

tests/Collection/CollectionFunctionalTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ public function testDrop()
6161
$this->assertCollectionCount($this->getNamespace(), 0);
6262
}
6363

64+
/**
65+
* @expectedException MongoDB\Exception\InvalidArgumentException
66+
* @todo Move this to a unit test once Manager can be mocked
67+
*/
68+
public function testDropIndexShouldNotAllowWildcardCharacter()
69+
{
70+
$this->collection->dropIndex('*');
71+
}
72+
6473
public function testFindOne()
6574
{
6675
$this->createFixtures(5);

tests/Collection/IndexManagementFunctionalTest.php

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)