public function testValidateItem() { $collection = $this->getCollection(); $batch = new \MongoDeleteBatch($collection); $this->setExpectedException('Exception', "Expected \$item to contain 'q' key"); $batch->add([]); }
public function testValidateItem() { $collection = $this->getCollection(); $batch = new \MongoDeleteBatch($collection); $this->setExpectedException('Exception', 'invalid item'); $batch->add([]); }