File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
app/code/Magento/Analytics Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public function __construct(
53
53
public function execute ($ commandName )
54
54
{
55
55
if (!array_key_exists ($ commandName , $ this ->commands )) {
56
- throw new NotFoundException (__ ('Command was not found. ' ));
56
+ throw new NotFoundException (__ ('Command "%1" was not found. ' , $ commandName ));
57
57
}
58
58
59
59
/** @var \Magento\Analytics\Model\Connector\CommandInterface $command */
Original file line number Diff line number Diff line change @@ -57,9 +57,13 @@ public function testExecute()
57
57
}
58
58
59
59
/**
60
+ * Executing non-existing command
61
+ *
60
62
* @expectedException \Magento\Framework\Exception\NotFoundException
63
+ * @expectedExceptionMessage Command "register" was not found.
64
+ * @return void
61
65
*/
62
- public function testExecuteCommandNotFound ()
66
+ public function testExecuteCommandNotFound (): void
63
67
{
64
68
$ commandName = 'register ' ;
65
69
$ this ->connector ->execute ($ commandName );
Original file line number Diff line number Diff line change 7
7
"There was an error save new configuration value.","There was an error save new configuration value."
8
8
"Please select an industry.","Please select an industry."
9
9
"--Please Select--","--Please Select--"
10
- "Command was not found.","Command was not found."
10
+ "Command "%1" was not found.","Command "%1" was not found."
11
11
"Input data must be string or convertible into string.","Input data must be string or convertible into string."
12
12
"Input data must be non-empty string.","Input data must be non-empty string."
13
13
"Not valid cipher method.","Not valid cipher method."
You can’t perform that action at this time.
0 commit comments