expectException(LogicException::class); $this->expectExceptionMessage('This database driver does not support creating databases.'); $grammar->compileCreateDatabase('foo', m::mock(Connection::class)); } public function testDropDatabaseIfExists() { $grammar = new class extends Grammar {}; $this->expectException(LogicException::class); $this->expectExceptionMessage('This database driver does not support dropping databases.'); $grammar->compileDropDatabaseIfExists('foo'); } }