Commit d3a4e613 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #69826 fix tests

parent 1826dd01
......@@ -309,8 +309,8 @@ class Bookmarks_SearchDeleteBookmarkedSearchTest extends Bookmarks_SearchWithSes
/** @test */
public function shouldRedirectToReferer() {
$this->assertRedirectTo('/');
public function shouldRedirectToAbonneSettings() {
$this->assertRedirectTo('/abonne/settings');
}
}
......@@ -389,9 +389,9 @@ class Bookmarks_SearchAuthorizedActionTest extends Bookmarks_SearchWithSessionAb
/** @test */
public function dispatchEditActionShouldRedirectToReferer() {
public function dispatchEditActionShouldRedirectToAbonneSettings() {
$this->dispatch('/opac/bookmarked-searches/edit/id/5', true);
$this->assertRedirectTo('/');
$this->assertRedirectTo('/abonne/settings');
}
......@@ -403,9 +403,9 @@ class Bookmarks_SearchAuthorizedActionTest extends Bookmarks_SearchWithSessionAb
/** @test */
public function dispatchDeleteActionShouldRedirectToReferer() {
public function dispatchDeleteActionShouldRedirectToAbonneSettings() {
$this->dispatch('/opac/bookmarked-searches/delete/id/5', true);
$this->assertRedirectTo('/');
$this->assertRedirectTo('/abonne/settings');
$this->assertNotNull(Class_User_BookmarkedSearch::find(5));
$this->assertFlashMessengerContentContains('Vous n\'avez pas la permission');
}
......
Markdown is supported
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