Force website IDs existence check even for super-admin.
@Valair thanks for this 👍
As I thought a LOT of tests are now failing see eg https://travis-ci.org/matomo-org/matomo/jobs/528746645
https://travis-ci.org/matomo-org/matomo/jobs/528746646 and https://travis-ci.org/matomo-org/matomo/jobs/528746647
In our test fixtures a lot of tests will need to be corrected.
I see it complains eg that in an AnnotationTest the user doesn't have view access to idSite 2. Looking at https://github.com/matomo-org/matomo/blob/3.10.0-b1/tests/PHPUnit/Fixtures/TwoSitesWithAnnotations.php#L27 the two websites seem actually created. So not sure if the tests needs adjusting or if there are more things to change in the
Access class itself.
Fixing all those tests can take quite a long time and possibly also some debugging etc. Please let us know if you're keen looking into it or not.
Ok, I will try to setup e dev/test environment to look into those failed tests.
Hi @Valair Thank you for the PR! Do you think you will be able to setup the test environment to adjust tests? Be awesome if you can. We'd like to merge the PR :+1: