File
- core/modules/user/tests/user.test, line 1102
- Tests for user.module.
Class
- UserPictureTestCase
Code
function testNoPicture() {
$this->backdropLogin($this->user);
$not_an_image = current($this->backdropGetTestFiles('html'));
$this->saveUserPicture($not_an_image);
$supported_extensions = image_get_supported_extensions();
$this->assertRaw(t('Only images with the following extensions are allowed: @formats.', array('@formats' => implode(', ', $supported_extensions))), 'Non-image files are not accepted.');
}