Skip to content

Commit

Permalink
fixup! fixup! fixup! IBX-7579:Richtext: Rows are added to ezurl_objec…
Browse files Browse the repository at this point in the history
…t_link on every save: Changed unit test into integration test
  • Loading branch information
vidarl committed Jun 19, 2024
1 parent c6c0c22 commit f21a80e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public function testGetUrlsFromUrlLink(): void
$gateway->linkUrl($urlIds[1], 12, 2);
$gateway->linkUrl($urlIds[2], 14, 1);

self::assertEquals(['https://ibexa.co/example1', 'https://ibexa.co/example2'], $gateway->getUrlsFromUrlLink(10, 1), 'Did not get expected urls for field 10');
$urls = $gateway->getUrlsFromUrlLink(10, 1);
asort($urls);
self::assertEquals(['https://ibexa.co/example1', 'https://ibexa.co/example2'], $urls, 'Did not get expected urls for field 10');
self::assertEquals(['https://ibexa.co/example2'], $gateway->getUrlsFromUrlLink(12, 2), 'Did not get expected url for field 12');
self::assertEquals(['https://ibexa.co/example3'], $gateway->getUrlsFromUrlLink(14, 1), 'Did not get expected url for field 14');
self::assertEquals([], $gateway->getUrlsFromUrlLink(15, 1), 'Expected no urls for field 15');
Expand Down

0 comments on commit f21a80e

Please sign in to comment.