Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit b8357d0

Browse files
author
Barbara Palumbo
committed
feat(Project): fix failed test
1 parent f77bbc9 commit b8357d0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/integration/Project/ProjectFixture.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Commercetools\Core\Request\Project\Command\ProjectChangeCurrenciesAction;
1515
use Commercetools\Core\Request\Project\Command\ProjectChangeLanguagesAction;
1616
use Commercetools\Core\Request\Project\Command\ProjectChangeMessagesConfigurationAction;
17+
use Commercetools\Core\Request\Project\Command\ProjectChangeProductSearchIndexingEnabledAction;
1718
use Commercetools\Core\Request\Project\Command\ProjectSetShippingRateInputTypeAction;
1819
use Commercetools\Core\Request\Project\ProjectGetRequest;
1920
use Commercetools\Core\Request\Project\ProjectUpdateRequest;
@@ -60,6 +61,10 @@ final public static function setupProject(ApiClient $client)
6061
$request->addAction(ProjectChangeCountryTaxRateFallbackEnabledAction::ofCountryTaxRateFallbackEnabled(false));
6162
}
6263

64+
if ($project->getSearchIndexing() === null) {
65+
$request->addAction(ProjectChangeProductSearchIndexingEnabledAction::ofEnabled(false));
66+
}
67+
6368
if ($request->hasActions()) {
6469
$response = $client->execute($request);
6570
$project = $request->mapFromResponse($response);

tests/integration/Project/ProjectUpdateRequestTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,6 @@ function (Project $project) use ($client) {
473473

474474
public function testChangeProductSearchIndexingEnabled()
475475
{
476-
$this->markTestSkipped("disabled");
477476
$client = $this->getApiClient();
478477

479478
ProjectFixture::withProject(

0 commit comments

Comments
 (0)