File tree Expand file tree Collapse file tree 5 files changed +0
-33
lines changed
Expand file tree Collapse file tree 5 files changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,6 @@ public static function getAllowedParallelismValues(): array
102102 return array_merge ($ intValues , ['infinity ' , null ]);
103103 }
104104
105- public static function getLegacyComponents (): array
106- {
107- return ['orchestrator ' , 'transformation ' , 'provisioning ' ];
108- }
109-
110105 public function createNewJob (array $ data ): JobInterface
111106 {
112107 $ data = $ this ->validateJobData ($ data , NewJobDefinition::class);
Original file line number Diff line number Diff line change @@ -235,11 +235,6 @@ private function decryptData($data)
235235 );
236236 }
237237
238- public function isLegacyComponent (): bool
239- {
240- return empty ($ this ->getComponentId ()) || in_array ($ this ->getComponentId (), JobFactory::getLegacyComponents ());
241- }
242-
243238 public function getBranchId (): ?string
244239 {
245240 return $ this ->data ['branchId ' ] ?? null ;
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ public function getBehavior(): Behavior;
3939 public function jsonSerialize (): array ;
4040 public function getTokenDecrypted (): string ;
4141 public function getConfigDataDecrypted (): array ;
42- public function isLegacyComponent (): bool ;
4342 public function getBranchId (): ?string ;
4443 public function getVariableValuesId (): ?string ;
4544 public function getVariableValuesData (): array ;
Original file line number Diff line number Diff line change @@ -195,27 +195,6 @@ public function testHasVariables(): void
195195 self ::assertSame (false , $ job ->hasVariables ());
196196 }
197197
198- public function testIsLegacy (): void
199- {
200- self ::assertFalse ($ this ->getJob ()->isLegacyComponent ());
201- }
202-
203- public function testIsLegacyOrchestrator (): void
204- {
205- $ jobData = $ this ->jobData ;
206- $ jobData ['componentId ' ] = 'orchestrator ' ;
207- self ::assertTrue ($ this ->getJob ($ jobData )->isLegacyComponent ());
208- }
209-
210- public function testLegacyOrchestratorJob (): void
211- {
212- $ jobData = $ this ->jobData ;
213- unset($ jobData ['componentId ' ]);
214- $ job = $ this ->getJob ($ jobData );
215- self ::assertEquals ('' , $ job ->getComponentId ());
216- self ::assertTrue ($ job ->isLegacyComponent ());
217- }
218-
219198 public function testJsonSerialize (): void
220199 {
221200 $ expected = $ this ->jobData ;
Original file line number Diff line number Diff line change @@ -526,7 +526,6 @@ public function testStaticGetters(): void
526526 {
527527 self ::assertCount (5 , JobFactory::getFinishedStatuses ());
528528 self ::assertCount (9 , JobFactory::getAllStatuses ());
529- self ::assertCount (3 , JobFactory::getLegacyComponents ());
530529 self ::assertCount (3 , JobFactory::getKillableStatuses ());
531530 }
532531
You can’t perform that action at this time.
0 commit comments