Meets #15173:  Subprojects are not copied correctly and the hierarchy is lost

[``* `#15173` Subprojects are not copied correctly and the hierarchy is lost``](https://www.openproject.org/work_packages/15173)
This is the old RSpec mocking syntax. Consider using the newer syntax:

```ruby
allow(User).to receive(:current).and_return(user)
```