diff --git a/lib/unitTest/Alchemy/Phrasea/Controller/Prod/BridgeTest.php b/lib/unitTest/Alchemy/Phrasea/Controller/Prod/BridgeTest.php index d2977b2ed1..89fc74f6ef 100644 --- a/lib/unitTest/Alchemy/Phrasea/Controller/Prod/BridgeTest.php +++ b/lib/unitTest/Alchemy/Phrasea/Controller/Prod/BridgeTest.php @@ -50,7 +50,8 @@ class BridgeApplication extends PhraseanetWebTestCaseAuthenticatedAbstract public function tearDown() { parent::tearDown(); - self::$api->delete(); + if(self::$api instanceof Bridge_Api) + self::$api->delete(); if (self::$account instanceof Bridge_Account) self::$account->delete(); }