Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simpletest doesn't like array-valued $db_url #51

Open
wellebee opened this issue Jul 24, 2012 · 0 comments
Open

simpletest doesn't like array-valued $db_url #51

wellebee opened this issue Jul 24, 2012 · 0 comments

Comments

@wellebee
Copy link

In Pressflow 6.25 if $db_url is an array, simpletest fails in at least a couple ways.

It produces temp tables of the form and then can't drop them later:
Arraysimpletest12345access
Arraysimpletest12345actions
...

Calls to variable_get(), variable_set() fail.

The following code in my test set-up works around the problem:

public function setUp() {
// simpletest doesn't like array-valued $db_url.
global $db_url;
$default = $db_url['default'];
$db_url = $default;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant