3.1 compat

This commit is contained in:
Ingo Schommer 2013-04-09 01:08:34 +02:00
parent 5f19a6789d
commit fe7a28266c
2 changed files with 5 additions and 4 deletions

View File

@ -4,7 +4,7 @@
*/
class TestSessionController extends Controller {
static $allowed_actions = array(
private static $allowed_actions = array(
'index',
'start',
'set',
@ -98,8 +98,9 @@ class TestSessionController extends Controller {
throw new LogicException("Fixture file must be inside the tests subfolder of one of your modules.");
}
$factory = Injector::inst()->create('FixtureFactory');
$fixture = Injector::inst()->create('YamlFixture', $fixtureFile);
$fixture->saveIntoDatabase();
$fixture->writeInto($factory);
Session::add_to_array('testsession.fixtures', $fixtureFile);

View File

@ -2,9 +2,9 @@
<p>
Current testing state
<ul>
<% control State %>
<% loop State %>
<li><strong>$Name:</strong> $Value</li>
<% end_control %>
<% end_loop %>
</ul>
</p>
<% end_if %>