-
Notifications
You must be signed in to change notification settings - Fork 1
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 #1872 from cultuurnet/III-6310-remove-legacy-langu…
…age-from-multilingual-string III-6310 Remove legacy `Language` from `MultilingualString`
- Loading branch information
Showing
19 changed files
with
45 additions
and
50 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 |
---|---|---|
|
@@ -609,7 +609,7 @@ public function it_handles_update_booking_info_after_udb2_update(): void | |
|
||
$bookingInfo = new BookingInfo( | ||
'www.publiq.be', | ||
new MultilingualString(new LegacyLanguage('nl'), 'publiq'), | ||
new MultilingualString(new Language('nl'), 'publiq'), | ||
'02 123 45 67', | ||
'[email protected]' | ||
); | ||
|
@@ -661,7 +661,7 @@ public function it_keeps_existing_uitpas_prices_on_price_info_update(): void | |
->withUiTPASTariffs([ | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Tariff 1' | ||
), | ||
new Money( | ||
|
@@ -691,7 +691,7 @@ public function it_keeps_existing_uitpas_prices_on_price_info_update(): void | |
->withUiTPASTariffs([ | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Tariff 1' | ||
), | ||
new Money( | ||
|
@@ -729,7 +729,7 @@ public function it_ignores_an_update_of_uitpas_prices(): void | |
->withUiTPASTariffs([ | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Tariff 1' | ||
), | ||
new Money( | ||
|
@@ -752,7 +752,7 @@ public function it_ignores_an_update_of_uitpas_prices(): void | |
))->withUiTPASTariffs([ | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Tariff 1' | ||
), | ||
new Money( | ||
|
@@ -770,7 +770,7 @@ public function it_ignores_an_update_of_uitpas_prices(): void | |
->withUiTPASTariffs([ | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Tariff 1' | ||
), | ||
new Money( | ||
|
@@ -808,7 +808,7 @@ public function it_ignores_an_update_with_equal_prices_without_uitpas(): void | |
->withUiTPASTariffs([ | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Tariff 1' | ||
), | ||
new Money( | ||
|
@@ -859,7 +859,7 @@ public function it_ignores_an_update_with_only_different_uitpas_prices(): void | |
->withUiTPASTariffs([ | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Tariff 1' | ||
), | ||
new Money( | ||
|
@@ -883,7 +883,7 @@ public function it_ignores_an_update_with_only_different_uitpas_prices(): void | |
)->withUiTPASTariffs([ | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Tariff 1' | ||
), | ||
new Money( | ||
|
@@ -951,7 +951,7 @@ public function it_handles_update_price_info_from_udb2_update(): void | |
->withTariffs([ | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Met kinderen' | ||
), | ||
new Money(2000, new Currency('EUR')) | ||
|
@@ -965,7 +965,7 @@ public function it_handles_update_price_info_from_udb2_update(): void | |
->withTariffs([ | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Met kinderen' | ||
), | ||
new Money(1499, new Currency('EUR')) | ||
|
@@ -980,7 +980,7 @@ public function it_handles_update_price_info_from_udb2_update(): void | |
->withTariffs([ | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Met kinderen' | ||
), | ||
new Money(1499, new Currency('EUR')) | ||
|
@@ -1926,7 +1926,7 @@ public function it_ignores_equal_uitpas_prices(): void | |
->withUiTPASTariffs([ | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Tariff 1' | ||
), | ||
new Money( | ||
|
@@ -1936,7 +1936,7 @@ public function it_ignores_equal_uitpas_prices(): void | |
), | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Tariff 2' | ||
), | ||
new Money( | ||
|
@@ -2027,7 +2027,7 @@ function (Event $event): void { | |
->withUiTPASTariffs([ | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Tariff 1' | ||
), | ||
new Money( | ||
|
@@ -2037,7 +2037,7 @@ function (Event $event): void { | |
), | ||
new \CultuurNet\UDB3\PriceInfo\Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Tariff 2' | ||
), | ||
new Money( | ||
|
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 |
---|---|---|
|
@@ -33,7 +33,6 @@ | |
use CultuurNet\UDB3\Http\Request\Psr7RequestBuilder; | ||
use CultuurNet\UDB3\Iri\CallableIriGenerator; | ||
use CultuurNet\UDB3\Json; | ||
use CultuurNet\UDB3\Language as LegacyLanguage; | ||
use CultuurNet\UDB3\Media\Image; | ||
use CultuurNet\UDB3\Media\ImageCollection; | ||
use CultuurNet\UDB3\Media\Properties\Description as MediaDescription; | ||
|
@@ -672,8 +671,8 @@ public function it_creates_a_new_event_without_id_but_with_all_properties(): voi | |
$eventId, | ||
new BookingInfo( | ||
'https://www.publiq.be', | ||
(new MultilingualString(new LegacyLanguage('nl'), 'Nederlandse label')) | ||
->withTranslation(new LegacyLanguage('en'), 'English label'), | ||
(new MultilingualString(new Language('nl'), 'Nederlandse label')) | ||
->withTranslation(new Language('en'), 'English label'), | ||
'016 12 34 56', | ||
'[email protected]', | ||
new DateTimeImmutable('2021-05-17T22:00:00+00:00'), | ||
|
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 |
---|---|---|
|
@@ -2013,21 +2013,21 @@ public function it_handles_booking_info_updated_events(): void | |
|
||
$bookingInfo = new BookingInfo( | ||
'www.publiq.be', | ||
new MultilingualString(new LegacyLanguage('nl'), 'publiq'), | ||
new MultilingualString(new Language('nl'), 'publiq'), | ||
'02 123 45 67', | ||
'[email protected]' | ||
); | ||
|
||
$sameBookingInfo = new BookingInfo( | ||
'www.publiq.be', | ||
new MultilingualString(new LegacyLanguage('nl'), 'publiq'), | ||
new MultilingualString(new Language('nl'), 'publiq'), | ||
'02 123 45 67', | ||
'[email protected]' | ||
); | ||
|
||
$otherBookingInfo = new BookingInfo( | ||
'www.2dotstwice.be', | ||
new MultilingualString(new LegacyLanguage('nl'), '2dotstwice'), | ||
new MultilingualString(new Language('nl'), '2dotstwice'), | ||
'016 12 34 56', | ||
'[email protected]' | ||
); | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,6 @@ | |
use CultuurNet\UDB3\Facility; | ||
use CultuurNet\UDB3\Iri\CallableIriGenerator; | ||
use CultuurNet\UDB3\Json; | ||
use CultuurNet\UDB3\Language as LegacyLanguage; | ||
use CultuurNet\UDB3\Media\Image; | ||
use CultuurNet\UDB3\Media\ImageCollection; | ||
use CultuurNet\UDB3\Media\Properties\Description as MediaDescription; | ||
|
@@ -763,7 +762,7 @@ public function it_projects_the_updated_price_info(): void | |
$priceInfo = $priceInfo->withExtraTariff( | ||
new Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'Tarief inwoners' | ||
), | ||
new Money(950, new Currency('EUR')) | ||
|
@@ -773,7 +772,7 @@ public function it_projects_the_updated_price_info(): void | |
$priceInfo = $priceInfo->withExtraUiTPASTariff( | ||
new Tariff( | ||
new MultilingualString( | ||
new LegacyLanguage('nl'), | ||
new Language('nl'), | ||
'UiTPAS tarief' | ||
), | ||
new Money(650, new Currency('EUR')) | ||
|
@@ -2468,7 +2467,7 @@ public function it_should_update_bookinginfo(): void | |
|
||
$event = new BookingInfoUpdated($id, new BookingInfo( | ||
'http://www.google.be', | ||
new MultilingualString(new LegacyLanguage('nl'), 'Dit is een booking info event'), | ||
new MultilingualString(new Language('nl'), 'Dit is een booking info event'), | ||
'0471123456', | ||
'[email protected]' | ||
)); | ||
|
Oops, something went wrong.