-
-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task/optimise test suite #5341
base: 9.0
Are you sure you want to change the base?
Task/optimise test suite #5341
Conversation
|
||
class ContentRepositoryInternalsAccessor implements ContentRepositoryServiceFactoryInterface | ||
{ | ||
public ContentRepositoryServiceFactoryDependencies $spiedInternals; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: expose (just) the required dependencies as explicit public readonly fields
@@ -57,6 +57,7 @@ public function resetContentRepositoryComponents(BeforeScenarioScope $scope): vo | |||
} | |||
|
|||
protected function getContentRepositoryService( | |||
ContentRepositoryId $contentRepositoryId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering: why do we have to change the signature? Can't we just refer to currentContentRepository
?
@@ -133,7 +133,7 @@ public function build(ContentRepositoryServiceFactoryDependencies $serviceFactor | |||
}; | |||
} | |||
}; | |||
$this->getContentRepositoryService($propertyConverterAccess); | |||
$this->getContentRepositoryService($this->currentContentRepository->id, $propertyConverterAccess); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't that exactly one of the hacks we should be able to replace now?
$propertyConverter = $this->getContentRepositoryServiceFactoryDependencies($this->currentContentRepository->id)->propertyConverter;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mhsdesign a short explanation in the PR and this is good to go, no?
@mhsdesign this PR would help me. Should I take over or can you take care of the remaining tweaks? |
ping :) |
Upgrade instructions
Review instructions
Checklist
FEATURE|TASK|BUGFIX
!!!
and have upgrade-instructions