stable

Clone or download

Read-only

chore: Use a more realistic user retriever stub

part of request #39352 Program add to top backlog post-action should ignore Teams No functional change. Unit tests hould pass. Why? We now have access to a wider range of builders for \PFUser, we use builders (that produce real objects) instead of mocks whenever possible. The ID of the user passed to the stub now matters, which makes for more realistic test cases. We should no longer build "generic" users, and we cannot pass id 101 all the time anymore. Change-Id: I3dc324e0e540e2969a0792346151326b7bd336c0

Modified Files

Name
M plugins/program_management/tests/rest/v1/Helper/ProgramDataBuilder.php +7 −8 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/ArtifactCreatorAdapterTest.php +3 −5 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/ProgramIncrement/Content/FeatureAdditionProcessorTest.php +6 −6 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/ProgramIncrement/Content/FeatureRemovalProcessorTest.php +27 −31 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/ProgramIncrement/UserCanLinkToProgramIncrementVerifierTest.php +4 −2 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/Timebox/StatusValueRetrieverTest.php +7 −2 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/Timebox/TimeframeValueRetrieverTest.php +6 −6 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/Timebox/UserCanUpdateTimeboxVerifierTest.php +10 −15 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/TopBacklog/ProcessTopBacklogChangeTest.php +18 −19 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Feature/UserStoryInOneMirrorPlannerTest.php +24 −22 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/IterationTracker/VisibleIterationTrackerRetrieverTest.php +19 −26 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Plan/PrioritizeFeaturesPermissionVerifierTest.php +22 −13 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Plan/ProgramAdapterTest.php +18 −29 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/PlanningAdapterTest.php +11 −12 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/ProgramIncrementTracker/VisibleProgramIncrementTrackerRetrieverTest.php +25 −22 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Team/TeamAdapterTest.php +36 −36 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Team/VisibleTeamSearcherTest.php +4 −2 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Workspace/ProjectManagerAdapterTest.php +2 −1 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Workspace/ProjectPermissionVerifierTest.php +10 −7 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Workspace/UserIsProgramAdminVerifierTest.php +16 −2 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/ProgramIncrement/Source/Fields/FieldPermissionsVerifierTest.php +9 −20 Go to diff View file
M plugins/program_management/tests/unit/Domain/Program/Backlog/ProgramIncrement/Source/SourceArtifactNatureAnalyzerTest.php +6 −3 Go to diff View file
M plugins/program_management/tests/unit/Tests/Stub/RetrieveUserStub.php +9 −70 Go to diff View file