mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Drop the redundant start command loop
All twenty-three start commands in app/config/frameworks.php shell out to a helper script, so every value the loop asserted against was already caught by the helpers/ check two lines above it. Reading the config back only restated what that check covers, and it was the one thing pulling Config into the trait.
This commit is contained in:
1 parent
d6a58529d7
commit
abaf46790e
1 file changed
-9
@@ -6,7 +6,6 @@ use Appwrite\Tests\Async;
|
||||
use Appwrite\Tests\Async\Exceptions\Critical;
|
||||
use CURLFile;
|
||||
use Tests\E2E\Client;
|
||||
use Utopia\Config\Config;
|
||||
use Utopia\Console;
|
||||
use Utopia\Database\Helpers\ID;
|
||||
use Utopia\Database\Query;
|
||||
@@ -506,13 +505,5 @@ trait SitesBase
|
||||
|
||||
// Every framework start command shells out to a helper script shipped in the runtime image.
|
||||
$this->assertStringNotContainsString('helpers/', $body);
|
||||
|
||||
foreach (Config::getParam('frameworks', []) as $framework) {
|
||||
foreach ($framework['adapters'] ?? [] as $adapter) {
|
||||
if (!empty($adapter['startCommand'])) {
|
||||
$this->assertStringNotContainsString($adapter['startCommand'], $body);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user