public function testGetOptionsForAdminUser()
{
$this->expectEvent(ContaoCoreEvents::IMAGE_SIZES_USER);
$this->expectExampleImageSizes();
/** @var BackendUser|\PHPUnit_Framework_MockObject_MockObject $user */
$user = $this->getMock('Contao\\BackendUser');
$user->imageSizes = serialize(['image_sizes' => '42']);
$user->isAdmin = true;
$options = $this->imageSizes->getOptionsForUser($user);
// TL_CROP would not be returned if the admin check was not done (because it's not in the allowed imageSizes)
$this->assertArraySubset($GLOBALS['TL_CROP'], $options);
}