Skip to content

Commit

Permalink
select_file= の場合のテストケース追加
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Feb 9, 2022
1 parent 8ef8d57 commit eefcc3f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/Eccube/Tests/Web/Admin/Content/FileControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,20 @@ public function testDelete()
$this->assertFalse(file_exists($filepath));
}

/**
* `select_file` が空の場合は `admin_content_file` へリダイレクトする.
*
* see https://github.com/EC-CUBE/ec-cube/pull/5298
*/
public function testDeleteWithEmpty()
{
$this->client->request(
'DELETE',
$this->generateUrl('admin_content_file_delete').'?select_file='
);
$this->assertTrue($this->client->getResponse()->isRedirect($this->generateUrl('admin_content_file')));
}

public function testIndexWithCreate()
{
$folder = 'create_folder';
Expand Down

0 comments on commit eefcc3f

Please sign in to comment.