Tests for https://github.com/silverstripe/silverstripe-framework/pull/3347
Merge pull request #1070 from tractorcow/pulls/3.1/framework-3347-test

Tests for https://github.com/silverstripe/silverstripe-framework/pull/3347