@@ -118,7 +118,9 @@ public function testGetVersionWithExceptionNoAutoincrement()
118
118
->will ($ this ->returnValue ([]));
119
119
120
120
$ this ->expectException ('Exception ' );
121
- $ this ->expectExceptionMessage ("Table status for ` {$ changelogTableName }` is incorrect. Can`t fetch version id. " );
121
+ $ this ->expectExceptionMessage (
122
+ __ ("Table status for %1 is incorrect. Can`t fetch version id. " , [$ changelogTableName ])
123
+ );
122
124
$ this ->model ->setViewId ('viewIdtest ' );
123
125
$ this ->model ->getVersion ();
124
126
}
@@ -130,7 +132,7 @@ public function testGetVersionWithExceptionNoTable()
130
132
$ this ->mockGetTableName ();
131
133
132
134
$ this ->expectException ('Exception ' );
133
- $ this ->expectExceptionMessage ("Table { $ changelogTableName } does not exist " );
135
+ $ this ->expectExceptionMessage (__ ( "Table %1 does not exist " , [ $ changelogTableName ]) );
134
136
$ this ->model ->setViewId ('viewIdtest ' );
135
137
$ this ->model ->getVersion ();
136
138
}
@@ -142,7 +144,7 @@ public function testDrop()
142
144
$ this ->mockGetTableName ();
143
145
144
146
$ this ->expectException ('Exception ' );
145
- $ this ->expectExceptionMessage ("Table { $ changelogTableName } does not exist " );
147
+ $ this ->expectExceptionMessage (__ ( "Table %1 does not exist " , [ $ changelogTableName ]) );
146
148
$ this ->model ->setViewId ('viewIdtest ' );
147
149
$ this ->model ->drop ();
148
150
}
@@ -234,7 +236,7 @@ public function testGetListWithException()
234
236
$ this ->mockGetTableName ();
235
237
236
238
$ this ->expectException ('Exception ' );
237
- $ this ->expectExceptionMessage ("Table { $ changelogTableName } does not exist " );
239
+ $ this ->expectExceptionMessage (__ ( "Table %1 does not exist " , [ $ changelogTableName ]) );
238
240
$ this ->model ->setViewId ('viewIdtest ' );
239
241
$ this ->model ->getList (mt_rand (1 , 200 ), mt_rand (201 , 400 ));
240
242
}
@@ -246,7 +248,7 @@ public function testClearWithException()
246
248
$ this ->mockGetTableName ();
247
249
248
250
$ this ->expectException ('Exception ' );
249
- $ this ->expectExceptionMessage ("Table { $ changelogTableName } does not exist " );
251
+ $ this ->expectExceptionMessage (__ ( "Table %1 does not exist " , [ $ changelogTableName ]) );
250
252
$ this ->model ->setViewId ('viewIdtest ' );
251
253
$ this ->model ->clear (mt_rand (1 , 200 ));
252
254
}
0 commit comments