Skip to content

Commit 2a44c06

Browse files
committed
Updated route and unit test
1 parent e75da22 commit 2a44c06

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/bundle/Resources/public/js/CKEditor/link/ui/link-form-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ class IbexaLinkFormView extends View {
485485
}
486486

487487
fetchSiteaccesses(locationId) {
488-
const request = new Request(`/api/ibexa/v2/site-access/load-non-admin-for-location/${locationId}`, {
488+
const request = new Request(`/api/ibexa/v2/site-access/by-location/${locationId}?resolver_type=non_admin`, {
489489
method: 'GET',
490490
headers: {
491491
Accept: 'application/json',

tests/lib/RichText/Converter/LinkTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
class LinkTest extends TestCase
2929
{
3030
/**
31-
* @return \PHPUnit\Framework\MockObject\MockObject&\Ibexa\Core\Repository\ContentService
31+
* @return \PHPUnit\Framework\MockObject\MockObject&\Ibexa\Contracts\Core\Repository\ContentService
3232
*/
3333
protected function getMockContentService()
3434
{
3535
return $this->createMock(ContentService::class);
3636
}
3737

3838
/**
39-
* @return \PHPUnit\Framework\MockObject\MockObject&\Ibexa\Core\Repository\LocationService
39+
* @return \PHPUnit\Framework\MockObject\MockObject&\Ibexa\Contracts\Core\Repository\LocationService
4040
*/
4141
protected function getMockLocationService()
4242
{
@@ -286,12 +286,12 @@ public function testConvertLocationLinkWithSiteAccess(): void
286286

287287
$location = $this->createMock(APILocation::class);
288288

289-
$locationService->expects($this->once())
289+
$locationService->expects(self::once())
290290
->method('loadLocation')
291-
->with($this->equalTo(106))
291+
->with(self::equalTo(106))
292292
->willReturn($location);
293293

294-
$router->expects($this->once())
294+
$router->expects(self::once())
295295
->method('generate')
296296
->with(UrlAliasRouter::URL_ALIAS_ROUTE_NAME, [
297297
'location' => $location,

0 commit comments

Comments
 (0)