Commit Graph

13 Commits

Author SHA1 Message Date
Ingo Schommer
f73b303d6d 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 14:22:56 +02:00
Ingo Schommer
3e9c4b2233 Create test DB if 'database' GET param is set, but no matching DB is found 2013-08-13 14:22:52 +02:00
Ingo Schommer
59327aff62 Updated framework dependency
New, looser syntax now supported by Composer
2013-08-13 14:10:48 +02:00
Sam Minnee
e326e02532 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-19 12:20:19 +02:00
Sam Minnee
78062a093c 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-19 12:20:12 +02:00
Ingo Schommer
9a8d24c116 Check for Security.token before setting test session state
Otherwise we'll get into a catch22 if it's not set:
The manifest includes this _config.php, which in turn
throws a fatal exception on the token not existing.
It would be recreated a couple of lines further down in Core.php
when the ConfigManifest is pushed, but never gets this far.
2013-06-04 15:00:54 +02:00
Ingo Schommer
d843933655 Limiting version dependency to 3.0 2013-04-09 09:53:01 +02:00
Ingo Schommer
5f19a6789d Fixed version dependency... again 2013-01-14 22:47:54 +01:00
Ingo Schommer
8c5ea6de6a Fixed core dependency 2013-01-14 22:47:15 +01: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