LPS-51439 The integration test logic for pacl and non-pacl tests are alm...

...ost identical, combine them to eliminate duplicate code

Backport pull at https://github.com/brianchandotcom/liferay-portal-ee/pull/7795