|
|
@ -95,8 +95,7 @@ class IslandoraTuqueTestCase extends IslandoraWebTestCase { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Test that tuque exists and the user is not null and the user is not tuque's |
|
|
|
* Test that tuque exists, the user is not null, the user is not tuque's user. |
|
|
|
* user. |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function testTuqueExistsAndUserIsNotNullAndUserIsNotTuquesUser() { |
|
|
|
public function testTuqueExistsAndUserIsNotNullAndUserIsNotTuquesUser() { |
|
|
|
$tuque = &drupal_static(__FUNCTION__); |
|
|
|
$tuque = &drupal_static(__FUNCTION__); |
|
|
@ -109,7 +108,7 @@ class IslandoraTuqueTestCase extends IslandoraWebTestCase { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Tests that tuque exists and the user is not null and the user is tuque's user |
|
|
|
* Tests that tuque exists, the user is not null, the user is tuque's user. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function testTuqueExistsAndUserIsNotNullAndUserIsTuquesUser() { |
|
|
|
public function testTuqueExistsAndUserIsNotNullAndUserIsTuquesUser() { |
|
|
|
$tuque = &drupal_static(__FUNCTION__); |
|
|
|
$tuque = &drupal_static(__FUNCTION__); |
|
|
@ -121,8 +120,7 @@ class IslandoraTuqueTestCase extends IslandoraWebTestCase { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Tests that tuque exists and the user is null and the global user is not |
|
|
|
* Tests that tuque exists, the user is null, global user is not tuque's user. |
|
|
|
* tuque's user. |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function testTuqueExistsAndUserIsNullAndGlobalUserIsNotTuquesUser() { |
|
|
|
public function testTuqueExistsAndUserIsNullAndGlobalUserIsNotTuquesUser() { |
|
|
|
$tuque = &drupal_static(__FUNCTION__); |
|
|
|
$tuque = &drupal_static(__FUNCTION__); |
|
|
@ -135,16 +133,15 @@ class IslandoraTuqueTestCase extends IslandoraWebTestCase { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Tests that tuque exists and the user is null and the global user is tuque's |
|
|
|
* Tests that tuque exists, the user is null, global user is tuque's user. |
|
|
|
* user. |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function testTuqueExistsAndUserIsNullAndGlobalUserIsTuquesUser() { |
|
|
|
public function testTuqueExistsAndUserIsNullAndGlobalUserIsTuquesUser() { |
|
|
|
$tuque = &drupal_static(__FUNCTION__); |
|
|
|
$tuque = &drupal_static(__FUNCTION__); |
|
|
|
global $user = $tuque->connection->username; |
|
|
|
global $_islandora_user; |
|
|
|
|
|
|
|
$_islandora_user = $tuque->connection->username; |
|
|
|
$new_tuque = islandora_get_tuque_connection($user); |
|
|
|
$new_tuque = islandora_get_tuque_connection($user); |
|
|
|
|
|
|
|
|
|
|
|
assertNotNull($new_tuque); |
|
|
|
assertNotNull($new_tuque); |
|
|
|
assertNotNull($tuque); |
|
|
|
assertNotNull($tuque); |
|
|
|
assertEqual($new_tuque->connection->username, $user); |
|
|
|
assertEqual($new_tuque->connection->username, $user); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|