[Mapbender-commits] r6920 - trunk/mapbender/test/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Sep 20 09:38:55 EDT 2010


Author: christoph
Date: 2010-09-20 13:38:54 +0000 (Mon, 20 Sep 2010)
New Revision: 6920

Removed:
   trunk/mapbender/test/http/classes/GroupTest.php
   trunk/mapbender/test/http/classes/MbNoticeTest.php
   trunk/mapbender/test/http/classes/MbWarningTest.php
   trunk/mapbender/test/http/classes/UserTest.php
Log:
obsolete tests

Deleted: trunk/mapbender/test/http/classes/GroupTest.php
===================================================================
--- trunk/mapbender/test/http/classes/GroupTest.php	2010-09-20 13:28:06 UTC (rev 6919)
+++ trunk/mapbender/test/http/classes/GroupTest.php	2010-09-20 13:38:54 UTC (rev 6920)
@@ -1,61 +0,0 @@
-<?php
-require_once 'PHPUnit/Framework.php';
-require_once dirname(__FILE__) . "/../../../http/classes/class_group.php";
-
-class GroupTest extends PHPUnit_Framework_TestCase
-{
-    var $someGroup_name = "demo";
-    var $someGroup_description = "Demo Group zum Test";
-
-	public function testCreate()
-    {
-      $group = new Group(null);
-      $group->name = $this->someGroup_name;
-      $group->description = $this->someGroup_description;
-
- 
-      $this->assertNotNull($group);
-
-      try{
-        $create_result = $group->create();
-      }
-      catch(Exception $E)
-      {
-        $this->assertEquals($E->getMessage(), 'Could not insert new group');
-      }
-      $this->assertNotNull($create_result);
-
-
-      $change_result = $group->change(null);
-      $this->assertTrue($change_result);
-
-
-      try{
-        $commit_result =  $group->commit();
-      }
-      catch(Exception $E)
-      {
-        $this->assertEquals($E->getMessage(), 'Database error updating Group');
-      }
-      
-      $this->assertTrue($commit_result);
-    }
-
-    /*
-    * @depends testCreate
-    */
-    public function testDelete()
-    {
-      $group = Group::byName($this->someGroup_name);
-      $this->assertNotNull($group);
-
-      $remove_result = $group->remove();
-      $this->assertTrue($remove_result);
-
-      $group = null;
-      $group = Group::byName($this->someGroup_name);
-      $this->assertNull($group);
-    } 
-
-}
-?>

Deleted: trunk/mapbender/test/http/classes/MbNoticeTest.php
===================================================================
--- trunk/mapbender/test/http/classes/MbNoticeTest.php	2010-09-20 13:28:06 UTC (rev 6919)
+++ trunk/mapbender/test/http/classes/MbNoticeTest.php	2010-09-20 13:38:54 UTC (rev 6920)
@@ -1,35 +0,0 @@
-<?php
-require_once 'PHPUnit/Framework.php';
-require_once dirname(__FILE__) . "/../../../http/classes/class_mb_log.php";
-
-class MbNoticeTest extends PHPUnit_Framework_TestCase
-{
-	var $someNotice;
-	
-	public function setUp () {
-		$this->someNotice = new mb_notice("unit test");		
-	}
-
-	public function tearDown () {
-		unset($this->someNotice);	
-	}
-	
-
-	/**
-	 * Notice was created
-	*/
-	public function testNoticeCreated()
-	{
-	//TODO: check if logfile is really created
-		$this->assertNotNull($this->someNotice);
-	}
-
-	/**
-	 * Notice was Successful
-	*/
-	public function testNoticeSuccessful()
-	{
-		$this->assertEquals("Successful.", $this->someNotice->message);
-	}
-}
-?>

Deleted: trunk/mapbender/test/http/classes/MbWarningTest.php
===================================================================
--- trunk/mapbender/test/http/classes/MbWarningTest.php	2010-09-20 13:28:06 UTC (rev 6919)
+++ trunk/mapbender/test/http/classes/MbWarningTest.php	2010-09-20 13:38:54 UTC (rev 6920)
@@ -1,35 +0,0 @@
-<?php
-require_once 'PHPUnit/Framework.php';
-require_once dirname(__FILE__) . "/../../../http/classes/class_mb_log.php";
-
-class MbWarningTest extends PHPUnit_Framework_TestCase
-{
-	var $someNotice;
-	
-	public function setUp () {
-		$this->someWarning = new mb_warning("unit test");		
-	}
-
-	public function tearDown () {
-		unset($this->someWarning);	
-	}
-	
-
-	/**
-	 * Notice was created
-	*/
-	public function testWarningCreated()
-	{
-	//TODO: check if logfile is really created
-		$this->assertNotNull($this->someWarning);
-	}
-
-	/**
-	 * Notice was Successful
-	*/
-	public function testWarningSuccessful()
-	{
-		$this->assertEquals("Successful.", $this->someWarning->message);
-	}
-}
-?>

Deleted: trunk/mapbender/test/http/classes/UserTest.php
===================================================================
--- trunk/mapbender/test/http/classes/UserTest.php	2010-09-20 13:28:06 UTC (rev 6919)
+++ trunk/mapbender/test/http/classes/UserTest.php	2010-09-20 13:38:54 UTC (rev 6920)
@@ -1,61 +0,0 @@
-<?php
-require_once 'PHPUnit/Framework.php';
-require_once dirname(__FILE__) . '/../../../http/classes/class_user.php';
-
-class UserTest extends PHPUnit_Framework_TestCase
-{
-    var $someUser_name = "demo";
-    var $someUser_description = "Demo User zum Testen";
-
-    public function testCreate()
-    {
-      $user = new User(null);
-      $user->name = $this->someUser_name;
-      $user->description = $this->someUser_description;
-      $user->public = 1;
-
-
-      $this->assertNotNull($user);
-
-      try{
-        $create_result = $user->create();
-      }
-      catch(Exception $E)
-      {
-        $this->assertEquals($E->getMessage(), 'Could not set initial values of new User');
-      }
-      $this->assertNotNull($create_result);
-
-
-      $change_result = $user->change(null);
-      $this->assertTrue($change_result);
- 
-      try{
-        $commit_result =  $user->commit();
-      }
-      catch(Exception $E)
-      {
-        $this->assertEquals($E->getMessage(), 'Database error updating User');
-      }
-      
-      $this->assertTrue($commit_result);
-
-    }
-
-    /*
-    * @depends testCreate
-    */
-    public function testDelete()
-    {
-      $user = User::byName($this->someUser_name);
-      $this->assertNotNull($user);
-
-      $remove_result = $user->remove();
-      $this->assertTrue($remove_result);
-
-      $user = null;
-      $user = User::byName($this->someUser_name);
-      $this->assertNull($user);
-    }
-}
-?>



More information about the Mapbender_commits mailing list