From 3dc74ef2506ac766858bdd1353859e5540d856d4 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 18 Mar 2010 20:35:30 +0100 Subject: [PATCH] Skip broken tests. --- framework/Auth/test/Horde/Auth/Kolab/Class/KolabTest.php | 7 +++++++ framework/Auth/test/Horde/Auth/Kolab/Integration/AuthTest.php | 7 ++++++- framework/Share/tests/Horde/Share/KolabScenarioTest.php | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/framework/Auth/test/Horde/Auth/Kolab/Class/KolabTest.php b/framework/Auth/test/Horde/Auth/Kolab/Class/KolabTest.php index c4078d254..2f89cc9fa 100644 --- a/framework/Auth/test/Horde/Auth/Kolab/Class/KolabTest.php +++ b/framework/Auth/test/Horde/Auth/Kolab/Class/KolabTest.php @@ -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') diff --git a/framework/Auth/test/Horde/Auth/Kolab/Integration/AuthTest.php b/framework/Auth/test/Horde/Auth/Kolab/Integration/AuthTest.php index 9202d711b..46baf8cae 100644 --- a/framework/Auth/test/Horde/Auth/Kolab/Integration/AuthTest.php +++ b/framework/Auth/test/Horde/Auth/Kolab/Integration/AuthTest.php @@ -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) diff --git a/framework/Share/tests/Horde/Share/KolabScenarioTest.php b/framework/Share/tests/Horde/Share/KolabScenarioTest.php index ec2b7a60f..0fc1fed4c 100644 --- a/framework/Share/tests/Horde/Share/KolabScenarioTest.php +++ b/framework/Share/tests/Horde/Share/KolabScenarioTest.php @@ -15,6 +15,7 @@ /** * We need the base class */ +return false; require_once 'Horde/Kolab/Test/Storage.php'; /** -- 2.11.0