Permalink
Browse files

udpate FrontController test to include session manager

  • Loading branch information...
1 parent 498fbdd commit df259b9020579e1fa17a77fbb0b12a98345c3b48 @pmjones pmjones committed Jan 4, 2013
Showing with 9 additions and 1 deletion.
  1. +9 −1 tests/Aura/Framework/Web/Controller/FrontTest.php
@@ -17,6 +17,9 @@
use Aura\Signal\ResultCollection;
use Aura\Signal\ResultFactory;
use Aura\Web\Context;
+use Aura\Session\Manager as SessionManager;
+use Aura\Session\SegmentFactory;
+use Aura\Session\CsrfTokenFactory;
class FrontTest extends \PHPUnit_Framework_TestCase
{
@@ -32,6 +35,8 @@ class FrontTest extends \PHPUnit_Framework_TestCase
protected $response;
+ protected $session;
+
protected $front;
/**
@@ -62,12 +67,15 @@ protected function newFront($path_info)
$this->response = new HttpResponse(new Headers(new HeaderFactory), new Cookies(new CookieFactory));
+ $this->session = new SessionManager(new SegmentFactory, new CsrfTokenFactory);
+
return new Front(
$this->signal,
$this->context,
$this->router,
$this->factory,
- $this->response
+ $this->response,
+ $this->session
);
}

0 comments on commit df259b9

Please sign in to comment.