]> git.openstreetmap.org Git - nominatim.git/commitdiff
php unit: don't enforce a name on the test database
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 7 Dec 2021 10:31:45 +0000 (11:31 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 7 Dec 2021 10:31:45 +0000 (11:31 +0100)
Also gets rid of a PHPUnit deprecation warning.

test/php/Nominatim/DBTest.php

index 1a2ecc861fe0ea68d15cb33a176692b5e1a37838..b1ff957bd40a4fae5a0eecfb58f11dcdd7b0708c 100644 (file)
@@ -132,12 +132,6 @@ class DBTest extends \PHPUnit\Framework\TestCase
                             getenv('UNIT_TEST_DSN') :
                             'pgsql:dbname=nominatim_unit_tests';
 
-        $this->assertRegExp(
-            '/unit_test/',
-            $unit_test_dsn,
-            'Test database will get destroyed, thus should have a name like unit_test to be safe'
-        );
-
         ## Create the database.
         {
             $aDSNParsed = \Nominatim\DB::parseDSN($unit_test_dsn);