Skip to content

Commit de4f2c1

Browse files
committed
Update template test assertion to use class notation
1 parent 0ea2f68 commit de4f2c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/Test/Unit/Element/TemplateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function testFetchViewWithNoFileNameDeveloperMode()
196196
->method('getMode')
197197
->willReturn(\Magento\Framework\App\State::MODE_DEVELOPER);
198198

199-
$this->setExpectedException('\Magento\Framework\Exception\ValidatorException', $exception);
199+
$this->setExpectedException(\Magento\Framework\Exception\ValidatorException::class, $exception);
200200
$this->block->fetchView($template);
201201
}
202202

0 commit comments

Comments
 (0)