-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1129 from cultuurnet/PPF-488/bugfix-activating-in…
…tegration-removes-consumer-group PPF-488 Always send the groups when updating uitidv1
- Loading branch information
Showing
10 changed files
with
105 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Tests; | ||
|
||
use App\Domain\Integrations\Integration; | ||
use App\Domain\Integrations\IntegrationPartnerStatus; | ||
use App\Domain\Integrations\IntegrationStatus; | ||
use App\Domain\Integrations\IntegrationType; | ||
use Ramsey\Uuid\Uuid; | ||
use Ramsey\Uuid\UuidInterface; | ||
|
||
trait CreateIntegration | ||
{ | ||
public function givenThereIsAnIntegration(UuidInterface $integrationId, array $options = []): Integration | ||
{ | ||
return new Integration( | ||
$integrationId, | ||
$options['type'] ?? IntegrationType::SearchApi, | ||
$options['name'] ?? 'Mock Integration', | ||
$options['description'] ?? 'Mock description', | ||
Uuid::uuid4(), | ||
$options['status'] ?? IntegrationStatus::Draft, | ||
$options['partnerStatus'] ?? IntegrationPartnerStatus::THIRD_PARTY, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.