Skip to content

Commit 7c8e2db

Browse files
authored
fix(core): generate discovery and signing key when installing the framework (#2139)
1 parent af10c6c commit 7c8e2db

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/Tempest/Framework/Installers/FrameworkInstaller.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,9 @@ public function install(): void
4545
);
4646

4747
$this->updateComposer();
48+
49+
$this->console->call('discovery:generate');
50+
51+
$this->console->call('key:generate');
4852
}
4953
}

tests/Integration/Core/FrameworkInstallerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ public function test_it_can_force_install(): void
3535
{
3636
$this->console
3737
->call('install framework --force')
38-
->assertDoesNotContain('Running the framework installer, continue?');
38+
->assertDoesNotContain('Running the framework installer, continue?')
39+
->assertContains('Generating full discovery cache')
40+
->assertContains('Signing key generated successfully');
3941

4042
$this->installer
4143
->assertFileExists(

0 commit comments

Comments
 (0)