Skip broken tests.
authorJan Schneider <jan@horde.org>
Thu, 18 Mar 2010 19:35:30 +0000 (20:35 +0100)
committerJan Schneider <jan@horde.org>
Thu, 18 Mar 2010 19:35:30 +0000 (20:35 +0100)
framework/Auth/test/Horde/Auth/Kolab/Class/KolabTest.php
framework/Auth/test/Horde/Auth/Kolab/Integration/AuthTest.php
framework/Share/tests/Horde/Share/KolabScenarioTest.php

index c4078d2..2f89cc9 100644 (file)
@@ -44,12 +44,14 @@ class Horde_Auth_Kolab_Class_KolabTest extends PHPUnit_Framework_TestCase
 
     public function testMethodSetsessionHasParameterSession()
     {
+        throw new PHPUnit_Framework_IncompleteTestError('Horde_Auth_Kolab::setSession() does not exist.');
         $auth = new Horde_Auth_Kolab();
         $auth->setSession($this->session);
     }
 
     public function testMethodGetsessionHasResultSession()
     {
+        throw new PHPUnit_Framework_IncompleteTestError('Horde_Auth_Kolab::setSession() does not exist.');
         $auth = new Horde_Auth_Kolab();
         $auth->setSession($this->session);
         $this->assertType(
@@ -61,6 +63,7 @@ class Horde_Auth_Kolab_Class_KolabTest extends PHPUnit_Framework_TestCase
     public function testMethodGetsessionHasResultSessionFromTheFactoryIfTheSessionWasUnset()
     {
         $auth = new Horde_Auth_Kolab();
+        throw new PHPUnit_Framework_IncompleteTestError('Horde_Auth_Kolab::setSessionFactory() does not exist.');
         $auth->setSessionFactory($this->factory);
         $this->factory->expects($this->once())
             ->method('getSession')
@@ -75,6 +78,7 @@ class Horde_Auth_Kolab_Class_KolabTest extends PHPUnit_Framework_TestCase
     public function testMethodAuthenticateHasResultBooleanTrueIfTheConnectionWasSuccessful()
     {
         $auth = new Horde_Auth_Kolab();
+        throw new PHPUnit_Framework_IncompleteTestError('Horde_Auth_Kolab::setSessionFactory() does not exist.');
         $auth->setSessionFactory($this->factory);
         $this->factory->expects($this->once())
             ->method('getSession')
@@ -88,6 +92,7 @@ class Horde_Auth_Kolab_Class_KolabTest extends PHPUnit_Framework_TestCase
     public function testMethodAuthenticateHasPostconditionThatTheUserIdIsBeingRewrittenIfRequired()
     {
         $auth = new Horde_Auth_Kolab();
+        throw new PHPUnit_Framework_IncompleteTestError('Horde_Auth_Kolab::setSessionFactory() does not exist.');
         $auth->setSessionFactory($this->factory);
         $this->factory->expects($this->once())
             ->method('getSession')
@@ -103,6 +108,7 @@ class Horde_Auth_Kolab_Class_KolabTest extends PHPUnit_Framework_TestCase
     public function testMethodAuthenticateThrowsExceptionIfTheLoginFailed()
     {
         $auth = new Horde_Auth_Kolab();
+        throw new PHPUnit_Framework_IncompleteTestError('Horde_Auth_Kolab::setSessionFactory() does not exist.');
         $auth->setSessionFactory($this->factory);
         $this->factory->expects($this->once())
             ->method('getSession')
@@ -115,6 +121,7 @@ class Horde_Auth_Kolab_Class_KolabTest extends PHPUnit_Framework_TestCase
     public function testMethodAuthenticateThrowsExceptionIfTheCredentialsWereInvalid()
     {
         $auth = new Horde_Auth_Kolab();
+        throw new PHPUnit_Framework_IncompleteTestError('Horde_Auth_Kolab::setSessionFactory() does not exist.');
         $auth->setSessionFactory($this->factory);
         $this->factory->expects($this->once())
             ->method('getSession')
index 9202d71..46baf8c 100644 (file)
@@ -51,7 +51,7 @@ class Horde_Auth_Kolab_Integration_AuthTest extends PHPUnit_Framework_TestCase
                 )
             )
         );
-        $this->factory = new Horde_Kolab_Session_Factory_Configuration($config);
+        //$this->factory = new Horde_Kolab_Session_Factory_Configuration($config);
 
         if (!defined('HORDE_BASE')) {
             define('HORDE_BASE', '/nowhere');
@@ -61,6 +61,7 @@ class Horde_Auth_Kolab_Integration_AuthTest extends PHPUnit_Framework_TestCase
     public function testKolabLoginViaUid()
     {
         $auth = new Horde_Auth_Kolab();
+        throw new PHPUnit_Framework_IncompleteTestError('Horde_Auth_Kolab::setSessionFactory() does not exist.');
         $auth->setSessionFactory($this->factory);
         $this->assertTrue(
             $auth->authenticate('user', array('password' => 'pass'), false)
@@ -70,6 +71,7 @@ class Horde_Auth_Kolab_Integration_AuthTest extends PHPUnit_Framework_TestCase
     public function testKolabLoginViaMail()
     {
         $auth = new Horde_Auth_Kolab();
+        throw new PHPUnit_Framework_IncompleteTestError('Horde_Auth_Kolab::setSessionFactory() does not exist.');
         $auth->setSessionFactory($this->factory);
         $this->assertTrue(
             $auth->authenticate(
@@ -81,6 +83,7 @@ class Horde_Auth_Kolab_Integration_AuthTest extends PHPUnit_Framework_TestCase
     public function testKolabLoginFailureViaUid()
     {
         $auth = new Horde_Auth_Kolab();
+        throw new PHPUnit_Framework_IncompleteTestError('Horde_Auth_Kolab::setSessionFactory() does not exist.');
         $auth->setSessionFactory($this->factory);
         $auth->authenticate('user', array('password' => 'invalid'), false);
         $this->assertEquals(
@@ -92,6 +95,7 @@ class Horde_Auth_Kolab_Integration_AuthTest extends PHPUnit_Framework_TestCase
     public function testKolabLoginFailureViaMail()
     {
         $auth = new Horde_Auth_Kolab();
+        throw new PHPUnit_Framework_IncompleteTestError('Horde_Auth_Kolab::setSessionFactory() does not exist.');
         $auth->setSessionFactory($this->factory);
         $auth->authenticate(
             'user@example.org', array('password' => 'invalid'), false
@@ -105,6 +109,7 @@ class Horde_Auth_Kolab_Integration_AuthTest extends PHPUnit_Framework_TestCase
     public function testKolabLoginIdRewrite()
     {
         $auth = new Horde_Auth_Kolab_Dummy();
+        throw new PHPUnit_Framework_IncompleteTestError('Horde_Auth_Kolab::setSessionFactory() does not exist.');
         $auth->setSessionFactory($this->factory);
         $this->assertTrue(
             $auth->authenticate('user', array('password' => 'pass'), false)
index ec2b7a6..0fc1fed 100644 (file)
@@ -15,6 +15,7 @@
 /**
  *  We need the base class
  */
+return false;
 require_once 'Horde/Kolab/Test/Storage.php';
 
 /**