private function checkThumbnail(LocalFile $image)
 {
     $hash = md5($image->getName());
     $thumb = $image->createThumb(120);
     $this->assertContains(sprintf('/%s/images/thumb/%s/%s/%s/120px-', $this->app->wg->DBname, $hash[0], $hash[0] . $hash[1], urlencode($image->getName())), $thumb, 'Path should contain a valid hash');
     $this->assertStringEndsWith(urlencode($image->getName()), $thumb, 'Path should end with file name');
     $this->assertTrue(Http::get($thumb, 'default', ['noProxy' => true]) !== false, 'Thumbnail should return HTTP 200 - ' . $thumb);
 }