Skip to content
Snippets Groups Projects
Commit 7106be18 authored by pbarroca's avatar pbarroca
Browse files

Couverture controller opds

parent 5ed43834
Branches
Tags
No related merge requests found
......@@ -321,6 +321,30 @@ class Admin_OpdsControllerUnknownIdsActionErrorsTest extends Admin_OpdsControlle
class Admin_OpdsControllerActionsWithUnknowCatalogTest extends Admin_OpdsControllerTestCase {
public function setUp() {
parent::setUp();
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_OpdsCatalog')
->whenCalled('find')
->answers(null);
}
/** @test */
public function browseShouldRedirectToIndex() {
$this->dispatch('/admin/opds/browse/id/666');
$this->assertRedirectTo('/admin/opds/index');
}
/** @test */
public function importShouldRedirectToIndex() {
$this->dispatch('/admin/opds/import/id/666');
$this->assertRedirectTo('/admin/opds/index');
}
}
abstract class Admin_OpdsControllerBrowseEbooksGratuitsTestCase extends Admin_OpdsControllerTestCase {
public function setUp() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment