diff --git a/tests/library/ZendAfi/View/Helper/WebThumbnailTest.php b/tests/library/ZendAfi/View/Helper/WebThumbnailTest.php
index a79af211724d4f9d998c87645fa8e24e8ce265ff..7c525e026292e86f78329fbc93db9066c5b5328e 100644
--- a/tests/library/ZendAfi/View/Helper/WebThumbnailTest.php
+++ b/tests/library/ZendAfi/View/Helper/WebThumbnailTest.php
@@ -134,6 +134,8 @@ $this->google_thumbnail_path = USERFILESPATH.'/web_thumbnails/www_google_com.jpg
 
 	/** @test */
 	public function thumbnailerCannotFetchImageAndBlugaDisabledReturnsEmptyUrl() {
+		Class_AdminVar::newInstanceWithId('BLUGA_API_KEY', ['valeur' => '']);
+
 		$this->_file_writer
 			->whenCalled('fileExists')
 			->with($this->google_thumbnail_path)