Skip to content

Commit 95e7259

Browse files
committed
Fix Tests
1 parent 5d7bd3b commit 95e7259

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/AppInstallerCLITests/PortableInstaller.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ using namespace AppInstaller::Repository::Microsoft;
2121
using namespace AppInstaller::SQLite;
2222
using namespace AppInstaller::Repository::Microsoft::Schema;
2323
using namespace AppInstaller::Utility;
24+
using namespace AppInstaller::CLI::Workflow;
2425
using namespace TestCommon;
2526

2627
TEST_CASE("PortableInstaller_InstallToRegistry", "[PortableInstaller]")
@@ -44,7 +45,7 @@ TEST_CASE("PortableInstaller_InstallToRegistry", "[PortableInstaller]")
4445
portableInstaller.SetDesiredState(desiredTestState);
4546
REQUIRE(portableInstaller.VerifyExpectedState());
4647

47-
portableInstaller.Install();
48+
portableInstaller.Install(AppInstaller::CLI::Workflow::OperationType::Install);
4849

4950
PortableInstaller portableInstaller2 = PortableInstaller(ScopeEnum::User, Architecture::X64, "testProductCode");
5051
REQUIRE(portableInstaller2.ARPEntryExists());
@@ -92,7 +93,7 @@ TEST_CASE("PortableInstaller_InstallToIndex_CreateInstallRoot", "[PortableInstal
9293
portableInstaller.SetDesiredState(desiredTestState);
9394
REQUIRE(portableInstaller.VerifyExpectedState());
9495

95-
portableInstaller.Install();
96+
portableInstaller.Install(AppInstaller::CLI::Workflow::OperationType::Install);
9697

9798
REQUIRE(std::filesystem::exists(installRootPath / portableInstaller.GetPortableIndexFileName()));
9899
REQUIRE(std::filesystem::exists(targetPath));
@@ -150,7 +151,7 @@ TEST_CASE("PortableInstaller_InstallToIndex_ExistingInstallRoot", "[PortableInst
150151
portableInstaller.SetDesiredState(desiredTestState);
151152
REQUIRE(portableInstaller.VerifyExpectedState());
152153

153-
portableInstaller.Install();
154+
portableInstaller.Install(AppInstaller::CLI::Workflow::OperationType::Install);
154155

155156
REQUIRE(std::filesystem::exists(installRootPath / portableInstaller.GetPortableIndexFileName()));
156157
REQUIRE(std::filesystem::exists(targetPath));
@@ -197,7 +198,7 @@ TEST_CASE("PortableInstaller_UnicodeSymlinkPath", "[PortableInstaller]")
197198
portableInstaller.SetDesiredState(desiredTestState);
198199
REQUIRE(portableInstaller.VerifyExpectedState());
199200

200-
portableInstaller.Install();
201+
portableInstaller.Install(AppInstaller::CLI::Workflow::OperationType::Install);
201202

202203
PortableInstaller portableInstaller2 = PortableInstaller(ScopeEnum::User, Architecture::X64, "testProductCode");
203204
REQUIRE(portableInstaller2.ARPEntryExists());

0 commit comments

Comments
 (0)