Skip to content

Commit 40e2c45

Browse files
committed
MAGETWO-88409: Builds stabilization for PR
1 parent 6da1eb1 commit 40e2c45

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

dev/tests/setup-integration/testsuite/Magento/Setup/ValidationRulesTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function setUp()
4141
}
4242

4343
/**
44-
* @expectedException \Magento\Setup\Exception
44+
* @expectedException \Magento\Framework\Setup\Exception
4545
* @expectedExceptionMessageRegExp /Primary key can`t be applied on table "test_table". All columns should be not nullable/
4646
* @moduleName Magento_TestSetupDeclarationModule8
4747
*/
@@ -61,7 +61,7 @@ public function testFailOnInvalidPrimaryKey()
6161
}
6262

6363
/**
64-
* @expectedException \Magento\Setup\Exception
64+
* @expectedException \Magento\Framework\Setup\Exception
6565
* @expectedExceptionMessageRegExp /Column definition "page_id_on" and reference column definition "page_id" are different in tables "dependent" and "test_table"/
6666
* @moduleName Magento_TestSetupDeclarationModule8
6767
*/
@@ -80,7 +80,7 @@ public function testFailOnIncosistentReferenceDefinition()
8080
}
8181

8282
/**
83-
* @expectedException \Magento\Setup\Exception
83+
* @expectedException \Magento\Framework\Setup\Exception
8484
* @expectedExceptionMessageRegExp /Auto Increment column do not have index. Column - "page_id"/
8585
* @moduleName Magento_TestSetupDeclarationModule8
8686
*/

lib/internal/Magento/Framework/Setup/Declaration/Schema/Declaration/SchemaBuilder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\Framework\Setup\Declaration\Schema\Declaration;
77

8+
use Magento\Framework\Phrase;
89
use Magento\Framework\Stdlib\BooleanUtils;
910
use Magento\Framework\Setup\Exception;
1011
use Magento\Framework\Setup\Declaration\Schema\Dto\Column;
@@ -116,7 +117,7 @@ private function validate(Schema $schema)
116117
$messages .= sprintf("%s%s", PHP_EOL, $error['message']);
117118
}
118119

119-
throw new Exception(__($messages));
120+
throw new Exception(new Phrase($messages));
120121
}
121122
}
122123

0 commit comments

Comments
 (0)