Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Jul 1, 2015
1 parent 43e059a commit 5e216c2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/Unit/Dispatcher/PageDispatcher.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class PageDispatcher_Test extends \PHPUnit_Framework_TestCase {
private $request;
private $response;
private $api;
private $session;
private $data;
private $appNamespace = "TestApp";

public function setUp() {
Expand Down Expand Up @@ -65,13 +67,15 @@ public function setUp() {
]);

$this->session = $this->getMock("\Gt\Session\Session", null, [$cfg]);
$this->data = $this->getMock("\Gt\Data\Data");

$this->dispatcher = new PageDispatcher(
$this->appNamespace,
$this->request,
$this->response,
$this->api,
$this->session
$this->session,
$this->data
);
}

Expand Down Expand Up @@ -328,7 +332,8 @@ public function testDispatcherProcessFixesUri($uri) {
$this->request,
$this->response,
$this->api,
$this->session
$this->session,
$this->data
);

$fixedUri = $this->dispatcher->process();
Expand Down Expand Up @@ -377,7 +382,8 @@ public function testDispatcherProcessFlushes() {
$request,
$this->response,
$this->api,
$this->session
$this->session,
$this->data
);

$this->dispatcher->process();
Expand Down

0 comments on commit 5e216c2

Please sign in to comment.