Skip to content

Commit

Permalink
tests: fixes, removed MockHttpRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 12, 2015
1 parent 6aa2b65 commit 7f6fdee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
11 changes: 2 additions & 9 deletions tests/Application/Presenter.paramChecking.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,12 @@ class TestPresenter extends Application\UI\Presenter
}


class MockHttpRequest extends Nette\Http\Request
{
public function __construct()
{}
}


$presenter = new TestPresenter;
$presenter->injectPrimary(
NULL,
NULL,
NULL,
new MockHttpRequest,
new Application\Routers\SimpleRouter,
new Http\Request(new Http\UrlScript),
new Http\Response
);

Expand Down
9 changes: 2 additions & 7 deletions tests/Application/Presenter.storeRequest().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,13 @@ class MockUser extends Security\User
}
}

class MockHttpRequest extends Http\Request
{
public function __construct() {}
}


$presenter = new TestPresenter();
$presenter->injectPrimary(
NULL,
NULL,
NULL,
new MockHttpRequest,
new Application\Routers\SimpleRouter,
new Http\Request(new Http\UrlScript),
new Http\Response,
$session = new MockSession,
$user = new MockUser
Expand Down

0 comments on commit 7f6fdee

Please sign in to comment.