RefreshableAppDryRun example


class CreateAppCommandTest extends TestCase
{
    private const APP_NAME = 'TestApp';

    private RefreshableAppDryRun $appLifecycle;

    private string $appDir;

    protected function setUp(): void
    {
        $this->appLifecycle = new RefreshableAppDryRun();
        $this->appDir = __DIR__ . '/_fixtures/create-app-project';
    }

    protected function tearDown(): void
    {
        $this->removeApp();
    }

    public function testSuccessfulCreateCommand(): void
    {
        $commandTester = $this->getCommandTester();

        

    public function doRefreshApps(bool $activateInstalled, Context $context, array $installAppNames = []): array
    {
        return $this->appLifecycleIterator->iterateOverApps($this->appLifecycle, $activateInstalled$context$installAppNames);
    }

    public function getRefreshableAppInfo(Context $context): RefreshableAppDryRun
    {
        $appInfo = new RefreshableAppDryRun();

        $this->appLifecycleIterator->iterateOverApps($appInfo, false, $context);

        return $appInfo;
    }
}
Home | Imprint | This part of the site doesn't use cookies.