Skip to content

Commit deb56bc

Browse files
author
Mark Hodge
committed
Update test exception messages to use strings
1 parent a6bc7c4 commit deb56bc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/internal/Magento/Framework/Mview/Test/Unit/View/ChangelogTest.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ public function testGetVersionWithExceptionNoAutoincrement()
118118
->will($this->returnValue([]));
119119

120120
$this->expectException('Exception');
121-
$this->expectExceptionMessage(
122-
__("Table status for %1 is incorrect. Can`t fetch version id.", [$changelogTableName])
123-
);
121+
$this->expectExceptionMessage("Table status for {$changelogTableName} is incorrect. Can`t fetch version id.");
124122
$this->model->setViewId('viewIdtest');
125123
$this->model->getVersion();
126124
}
@@ -132,7 +130,7 @@ public function testGetVersionWithExceptionNoTable()
132130
$this->mockGetTableName();
133131

134132
$this->expectException('Exception');
135-
$this->expectExceptionMessage(__("Table %1 does not exist", [$changelogTableName]));
133+
$this->expectExceptionMessage("Table {$changelogTableName} does not exist");
136134
$this->model->setViewId('viewIdtest');
137135
$this->model->getVersion();
138136
}
@@ -144,7 +142,7 @@ public function testDrop()
144142
$this->mockGetTableName();
145143

146144
$this->expectException('Exception');
147-
$this->expectExceptionMessage(__("Table %1 does not exist", [$changelogTableName]));
145+
$this->expectExceptionMessage("Table {$changelogTableName} does not exist");
148146
$this->model->setViewId('viewIdtest');
149147
$this->model->drop();
150148
}
@@ -236,7 +234,7 @@ public function testGetListWithException()
236234
$this->mockGetTableName();
237235

238236
$this->expectException('Exception');
239-
$this->expectExceptionMessage(__("Table %1 does not exist", [$changelogTableName]));
237+
$this->expectExceptionMessage("Table {$changelogTableName} does not exist");
240238
$this->model->setViewId('viewIdtest');
241239
$this->model->getList(mt_rand(1, 200), mt_rand(201, 400));
242240
}
@@ -248,7 +246,7 @@ public function testClearWithException()
248246
$this->mockGetTableName();
249247

250248
$this->expectException('Exception');
251-
$this->expectExceptionMessage(__("Table %1 does not exist", [$changelogTableName]));
249+
$this->expectExceptionMessage("Table {$changelogTableName} does not exist");
252250
$this->model->setViewId('viewIdtest');
253251
$this->model->clear(mt_rand(1, 200));
254252
}

0 commit comments

Comments
 (0)