euromark 12 years ago
parent
commit
18042d3837
2 changed files with 2 additions and 6 deletions
  1. 2 4
      Test/Case/Lib/WeatherLibTest.php
  2. 0 2
      Test/Case/View/Helper/WeatherHelperTest.php

+ 2 - 4
Test/Case/Lib/WeatherLibTest.php

@@ -6,12 +6,10 @@ class WeatherLibTest extends MyCakeTestCase {
 
 	public function setUp() {
 		parent::setUp();
-		if (!Configure::read('Weather.key')) {
-			Configure::write('Weather.key', '598dfbdaeb121715111208');
-		}
 
-		App::uses('WeatherLib', 'Tools.Lib');
 		$this->Weather = new WeatherLib();
+
+		$this->skipIf(!Configure::read('Weather.key'));
 	}
 
 	public function testUrl() {

+ 0 - 2
Test/Case/View/Helper/WeatherHelperTest.php

@@ -25,10 +25,8 @@ class WeatherHelperTest extends MyCakeTestCase {
 		$res = $this->Weather->get('51.0872,13.8028');
 		$res = $this->_displayForecast($res);
 		$this->out($res);
-		return debug($res);
 		$this->assertTrue(!empty($res));
 
-
 		$res = $this->Weather->get('Berlin, Deutschland');
 		$res = $this->_displayForecast($res);
 		$this->out($res);