File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -572,6 +572,10 @@ public function testAssertTemplateNameFailsWhenNotFound(): void
572
572
try {
573
573
$ this ->assertTemplateName ('foo ' );
574
574
} catch (ExpectationFailedException $ exception ) {
575
+ $ this ->assertStringContainsString (
576
+ 'Failed asserting that view model tree contains template "foo" ' ,
577
+ $ exception ->getMessage ()
578
+ );
575
579
return ;
576
580
}
577
581
$ this ->fail ('Expected Exception not thrown ' );
@@ -587,6 +591,10 @@ public function testAssertNotTemplateNameFailsWhenFound(): void
587
591
try {
588
592
$ this ->assertNotTemplateName ('child1 ' );
589
593
} catch (ExpectationFailedException $ exception ) {
594
+ $ this ->assertStringContainsString (
595
+ 'Failed asserting that view model tree does not contain template "child1" ' ,
596
+ $ exception ->getMessage ()
597
+ );
590
598
return ;
591
599
}
592
600
$ this ->fail ('Expected Exception not thrown ' );
You can’t perform that action at this time.
0 commit comments