public function test_index() { $this->dbal->shouldReceive('addIndex')->with(['email'], null, [], []); $this->table->index('email'); }