Fassung 1.7.0: verlässliche Installation, übersichtliche Verwaltung und bedienbare Bewegung
This commit is contained in:
1 parent
b164c4edfe
commit
495b26896e
55 files changed
+1632
-423
No files matched your search
@@ -89,7 +89,7 @@ final class InstallationTest extends TestCase
|
||||
$bad = $this->installation->testDatabase('mysql', ['host' => '127.0.0.1', 'port' => '1', 'name' => 'x', 'user' => 'y', 'password' => 'z']);
|
||||
self::assertNotNull($bad['error']);
|
||||
self::assertStringNotContainsString('geheimespasswort', $this->installation->testDatabase('mysql', ['host' => '127.0.0.1', 'port' => '1', 'name' => 'x', 'user' => 'y', 'password' => 'geheimespasswort'])['error'], 'Das Passwort gehört in keine Fehlermeldung.');
|
||||
self::assertFalse(is_file($this->root.'/.env.local'), 'Eine gescheiterte Prüfung schreibt nichts.');
|
||||
self::assertFalse(is_file($this->root.'/.env'), 'Eine gescheiterte Prüfung schreibt nichts.');
|
||||
}
|
||||
|
||||
public function testTheEnvironmentFileKeepsWhatIsAlreadyThere(): void
|
||||
@@ -99,7 +99,7 @@ final class InstallationTest extends TestCase
|
||||
|
||||
// The website step adds the address later and must not lose the database doing it.
|
||||
$this->installation->writeEnvironment(['SITE_ORIGIN' => 'https://example.de']);
|
||||
$content = (string) file_get_contents($this->root.'/.env.local');
|
||||
$content = (string) file_get_contents($this->root.'/.env');
|
||||
self::assertStringContainsString('APP_SECRET="geheim"', $content);
|
||||
self::assertStringContainsString('DATABASE_URL="sqlite:///x.db"', $content);
|
||||
self::assertStringContainsString('SITE_ORIGIN="https://example.de"', $content);
|
||||
@@ -220,7 +220,7 @@ final class InstallationTest extends TestCase
|
||||
|
||||
private function settingsOrigin(): string
|
||||
{
|
||||
preg_match('/SITE_ORIGIN="([^"]*)"/', (string) file_get_contents($this->root.'/.env.local'), $match);
|
||||
preg_match('/SITE_ORIGIN="([^"]*)"/', (string) file_get_contents($this->root.'/.env'), $match);
|
||||
|
||||
return $match[1] ?? '';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user