File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ class CompleteBackup extends AbstractActionController
18
18
public function indexAction ()
19
19
{
20
20
$ view = new ViewModel ;
21
- $ view ->setTerminal ( true );
22
- $ view -> setTemplate ( ' /magento/setup/complete-backup.phtml ' );
21
+ $ view ->setTemplate ( ' /error/404.phtml ' );
22
+ $ this -> getResponse ()-> setStatusCode (\ Zend \ Http \Response:: STATUS_CODE_404 );
23
23
return $ view ;
24
24
}
25
25
Original file line number Diff line number Diff line change @@ -26,8 +26,11 @@ public function testIndexAction()
26
26
{
27
27
$ viewModel = $ this ->controller ->indexAction ();
28
28
$ this ->assertInstanceOf (\Zend \View \Model \ViewModel::class, $ viewModel );
29
- $ this ->assertTrue ($ viewModel ->terminate ());
30
- $ this ->assertSame ('/magento/setup/complete-backup.phtml ' , $ viewModel ->getTemplate ());
29
+ $ this ->assertSame ('/error/404.phtml ' , $ viewModel ->getTemplate ());
30
+ $ this ->assertSame (
31
+ \Zend \Http \Response::STATUS_CODE_404 ,
32
+ $ this ->controller ->getResponse ()->getStatusCode ()
33
+ );
31
34
}
32
35
33
36
public function testProgressAction ()
You can’t perform that action at this time.
0 commit comments