Skip to content

Commit

Permalink
ローカルでも動くように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nobuhiko committed Aug 25, 2022
1 parent f2d33ae commit 3843475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ public function testRoutingAdminContentBlockDefaultBlockDelete()
{
$this->loginTo($this->createMember());

$redirectUrl = $this->generateUrl('admin_content_block');

$this->client->request('DELETE',
$this->generateUrl('admin_content_block_delete', ['id' => 1])
);

$redirectUrl = $this->generateUrl('admin_content_block');
$actual = $this->client->getResponse()->isRedirect($redirectUrl);

$this->assertSame(true, $actual);
Expand Down
4 changes: 1 addition & 3 deletions tests/Eccube/Tests/Web/Admin/Content/NewsControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,11 @@ public function testRoutingAdminContentNewsDelete()

$this->loginTo($Member);

$redirectUrl = $this->generateUrl('admin_content_news');

$this->client->request('DELETE',
$this->generateUrl('admin_content_news_delete', ['id' => $News->getId()])
);

$this->assertTrue($this->client->getResponse()->isRedirect($redirectUrl));
$this->assertTrue($this->client->getResponse()->isRedirect($this->generateUrl('admin_content_news')));
}

private function createNews($TestCreator, $sortNo = 1)
Expand Down

0 comments on commit 3843475

Please sign in to comment.