@@ -57,7 +57,7 @@ public function testResolveRuntimeSettingsInJob(): void
5757 $ clientMock = self ::createMock (Client::class);
5858 $ clientMock ->expects (self ::once ())->method ('apiGet ' )
5959 ->withConsecutive (
60- ['components/keboola.ex-db-snowflake ' ]
60+ ['branch/default/ components/keboola.ex-db-snowflake ' ]
6161 )->willReturnOnConsecutiveCalls (
6262 $ componentData
6363 );
@@ -126,7 +126,7 @@ public function testResolveRuntimeSettingsInConfigData(): void
126126 $ clientMock = self ::createMock (Client::class);
127127 $ clientMock ->expects (self ::once ())->method ('apiGet ' )
128128 ->withConsecutive (
129- ['components/keboola.ex-db-snowflake ' ]
129+ ['branch/default/ components/keboola.ex-db-snowflake ' ]
130130 )->willReturnOnConsecutiveCalls (
131131 $ componentData
132132 );
@@ -215,8 +215,8 @@ public function testResolveRuntimeSettingsInConfiguration(): void
215215 $ clientMock = self ::createMock (Client::class);
216216 $ clientMock ->expects (self ::exactly (2 ))->method ('apiGet ' )
217217 ->withConsecutive (
218- ['components/keboola.ex-db-snowflake/configs/454124290 ' ],
219- ['components/keboola.ex-db-snowflake ' ]
218+ ['branch/default/ components/keboola.ex-db-snowflake/configs/454124290 ' ],
219+ ['branch/default/ components/keboola.ex-db-snowflake ' ]
220220 )->willReturnOnConsecutiveCalls (
221221 $ configuration ,
222222 $ componentData
@@ -289,8 +289,8 @@ public function testResolveRuntimeSettingsInConfigurationOfTransformations(): vo
289289 $ clientMock = self ::createMock (Client::class);
290290 $ clientMock ->expects (self ::exactly (2 ))->method ('apiGet ' )
291291 ->withConsecutive (
292- ['components/keboola.ex-db-snowflake/configs/454124290 ' ],
293- ['components/keboola.ex-db-snowflake ' ]
292+ ['branch/default/ components/keboola.ex-db-snowflake/configs/454124290 ' ],
293+ ['branch/default/ components/keboola.ex-db-snowflake ' ]
294294 )->willReturnOnConsecutiveCalls (
295295 $ configuration ,
296296 $ componentData
@@ -374,8 +374,8 @@ public function testResolveRuntimeSettingsPriority(): void
374374 $ clientMock = self ::createMock (Client::class);
375375 $ clientMock ->expects (self ::exactly (2 ))->method ('apiGet ' )
376376 ->withConsecutive (
377- ['components/keboola.ex-db-snowflake/configs/454124290 ' ],
378- ['components/keboola.ex-db-snowflake ' ],
377+ ['branch/default/ components/keboola.ex-db-snowflake/configs/454124290 ' ],
378+ ['branch/default/ components/keboola.ex-db-snowflake ' ],
379379 )->willReturnOnConsecutiveCalls (
380380 $ configuration ,
381381 $ componentData
@@ -445,8 +445,8 @@ public function testResolveRuntimeSettingsNowhere(): void
445445 $ clientMock = self ::createMock (Client::class);
446446 $ clientMock ->expects (self ::exactly (2 ))->method ('apiGet ' )
447447 ->withConsecutive (
448- ['components/keboola.ex-db-snowflake/configs/454124290 ' ],
449- ['components/keboola.ex-db-snowflake ' ]
448+ ['branch/default/ components/keboola.ex-db-snowflake/configs/454124290 ' ],
449+ ['branch/default/ components/keboola.ex-db-snowflake ' ]
450450 )->willReturnOnConsecutiveCalls ($ configuration , $ component );
451451 $ clientWrapperMock = self ::createMock (ClientWrapper::class);
452452 $ clientWrapperMock ->method ('getBranchClientIfAvailable ' )->willReturn ($ clientMock );
@@ -507,7 +507,7 @@ public function testResolveRuntimeSettingsConfigurationNotFound(): void
507507 $ clientMock = self ::createMock (Client::class);
508508 $ clientMock ->expects (self ::once ())->method ('apiGet ' )
509509 ->with (
510- 'components/keboola.ex-db-snowflake/configs/454124290 ' ,
510+ 'branch/default/ components/keboola.ex-db-snowflake/configs/454124290 ' ,
511511 )->willThrowException (new StorageClientException ('Configuration "454124290" not found ' , 404 ));
512512 $ clientWrapperMock = self ::createMock (ClientWrapper::class);
513513 $ clientWrapperMock ->method ('getBranchClientIfAvailable ' )->willReturn ($ clientMock );
@@ -539,7 +539,7 @@ public function testResolveNoConfiguration(): void
539539
540540 $ clientMock = self ::createMock (Client::class);
541541 $ clientMock ->expects (self ::once ())->method ('apiGet ' )
542- ->with ('components/keboola.ex-db-snowflake ' )->willReturn ($ component );
542+ ->with ('branch/default/ components/keboola.ex-db-snowflake ' )->willReturn ($ component );
543543 $ clientWrapperMock = self ::createMock (ClientWrapper::class);
544544 $ clientWrapperMock ->method ('getBranchClientIfAvailable ' )->willReturn ($ clientMock );
545545 $ storageClientFactoryMock = self ::createMock (StorageClientPlainFactory::class);
@@ -588,7 +588,7 @@ public function testResolveEmptyConfiguration(): void
588588
589589 $ clientMock = self ::createMock (Client::class);
590590 $ clientMock ->expects (self ::once ())->method ('apiGet ' )
591- ->with ('components/keboola.ex-db-snowflake ' )->willReturn ($ component );
591+ ->with ('branch/default/ components/keboola.ex-db-snowflake ' )->willReturn ($ component );
592592 $ clientWrapperMock = self ::createMock (ClientWrapper::class);
593593 $ clientWrapperMock ->method ('getBranchClientIfAvailable ' )->willReturn ($ clientMock );
594594 $ storageClientFactoryMock = self ::createMock (StorageClientPlainFactory::class);
@@ -675,7 +675,7 @@ public function testResolveInvalidComponent(): void
675675
676676 $ clientMock = self ::createMock (Client::class);
677677 $ clientMock ->expects (self ::once ())->method ('apiGet ' )
678- ->with ('components/keboola.ex-db-snowflake ' )->willReturn ($ component );
678+ ->with ('branch/default/ components/keboola.ex-db-snowflake ' )->willReturn ($ component );
679679 $ clientWrapperMock = self ::createMock (ClientWrapper::class);
680680 $ clientWrapperMock ->method ('getBranchClientIfAvailable ' )->willReturn ($ clientMock );
681681 $ storageClientFactoryMock = self ::createMock (StorageClientPlainFactory::class);
@@ -790,7 +790,7 @@ public function testConfigurationDisabledException(): void
790790
791791 $ clientMock = self ::createMock (Client::class);
792792 $ clientMock ->expects (self ::once ())->method ('apiGet ' )
793- ->with ('components/keboola.ex-db-snowflake/configs/454124290 ' )->willReturn ($ configuration );
793+ ->with ('branch/default/ components/keboola.ex-db-snowflake/configs/454124290 ' )->willReturn ($ configuration );
794794 $ clientWrapperMock = self ::createMock (ClientWrapper::class);
795795 $ clientWrapperMock ->method ('getBranchClientIfAvailable ' )->willReturn ($ clientMock );
796796 $ storageClientFactoryMock = self ::createMock (StorageClientPlainFactory::class);
@@ -842,7 +842,7 @@ public function testResolveBackend(
842842 $ clientMock = self ::createMock (Client::class);
843843 $ clientMock ->expects (self ::exactly ($ expectedApiCallCount ))->method ('apiGet ' )
844844 ->withConsecutive (
845- ['components/keboola.ex-db-snowflake ' ]
845+ ['branch/default/ components/keboola.ex-db-snowflake ' ]
846846 )->willReturnOnConsecutiveCalls (
847847 $ componentData
848848 );
0 commit comments