Commit Graph

14 Commits

Author SHA1 Message Date
Ingo Schommer
dca76e9ba3 Fixed var_export return value in state viewer 2013-12-10 16:50:07 +01:00
Ingo Schommer
d8debeba08 Extension hooks 2013-12-09 13:29:46 +01:00
Ingo Schommer
3dbaf8f92a TestSessionDatabaseState for shared state between processes 2013-12-09 01:41:44 +01:00
Ingo Schommer
81d39c2350 NEW Write PHP code for later inclusion
Useful for out-of-process stubs with Behat+Selenium
2013-11-27 19:29:44 +01:00
Ingo Schommer
babd24f4b9 API Don't create fixtures by default
Use @database-defaults in specific scenarios or features to enforce creation.
2013-09-14 18:53:53 +02:00
Ingo Schommer
f65bef86ed Set temp database on current request
Was relying on cookie to set on NEXT request, which was too late
since some of the following init logic relied on DB queries.
This happened to work if your non-test DB was already set up,
but failed on fresh checkouts.
2013-08-13 13:58:50 +02:00
Ingo Schommer
2a8376e1e1 Create test DB if 'database' GET param is set, but no matching DB is found 2013-08-07 13:56:36 +02:00
Sam Minnee
25c7abb32d FIX: Add workaround for Cookie bug.
This patch adds a workaround for the Cookie bug, so that we don't need 3.1+ in
order to test.
2013-06-07 11:36:55 +12:00
Sam Minnee
89d6b036b4 NEW: Add status code comment to testsession/start output.
testsession/start now includes a comment of the form <!-- SUCCESS: DBNAME=DatabaseName -->,
which can be used by behat and other consumers to validate that the tesession was actually
started.

It's included the database name in its output, which is a small piece of information
disclosure, but not a big deal compared to the generally dev-only nature of this module.

It requires a fix to Cookie::set(), to ensure that set cookies also apperar immediately
in $_COOKIE.  Otherwise the call to DB::get_alternative_database_name() after it is set
won't return a value.
2013-06-07 11:22:18 +12:00
Ingo Schommer
fe7a28266c 3.1 compat 2013-04-09 01:58:10 +02:00
Ingo Schommer
7e8021af04 NEW Mailer class and mock date support 2012-12-19 15:47:39 +01:00
Ingo Schommer
a2d7675e57 API Combined "setdb" into "start". Renamed "emptydb" to "clear". Added "set".
Using templates, listing state in them.
2012-12-19 15:45:52 +01:00
Ingo Schommer
4e75488dd3 Centralized isLive checks 2012-12-19 14:30:29 +01:00
Ingo Schommer
db290a1cf9 Initial commit
Mostly migrated from 3.0 core, with some documentation adjustments.
Removed the unused dev/tests/sessionloadyaml command.
2012-12-19 14:20:06 +01:00