Skip to content

Commit 138e4b9

Browse files
committed
Add message to custom assertion
1 parent 5ed1082 commit 138e4b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/framework/tests/Feature/YamlConfigurationFeatureTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ public function testTypeErrorsInAuthorsYamlConfigAreRethrownMoreHelpfully()
471471
$this->assertSame('Invalid author configuration detected in the YAML config file. Please double check the syntax.', $exception->getMessage());
472472
}
473473

474-
$this->assertTrue($exceptionThrown);
474+
$this->assertTrue($exceptionThrown, 'Failed asserting that the exception was thrown.');
475475
unlink('hyde.yml');
476476
}
477477

@@ -680,7 +680,7 @@ public function testTypeErrorsInNavigationYamlConfigAreRethrownMoreHelpfully()
680680
$this->assertSame('Invalid navigation item configuration detected the configuration file. Please double check the syntax.', $exception->getMessage());
681681
}
682682

683-
$this->assertTrue($exceptionThrown);
683+
$this->assertTrue($exceptionThrown, 'Failed asserting that the exception was thrown.');
684684
unlink('hyde.yml');
685685
}
686686

@@ -702,7 +702,7 @@ public function testMustAddDestinationToYamlConfiguredNavigationItems()
702702
$this->assertSame('Invalid navigation item configuration detected the configuration file. Please double check the syntax.', $exception->getMessage());
703703
}
704704

705-
$this->assertTrue($exceptionThrown);
705+
$this->assertTrue($exceptionThrown, 'Failed asserting that the exception was thrown.');
706706
unlink('hyde.yml');
707707
}
708708

@@ -725,7 +725,7 @@ public function testAddingExtraYamlNavigationItemFieldsThrowsAnException()
725725
$this->assertSame('Invalid navigation item configuration detected the configuration file. Please double check the syntax.', $exception->getMessage());
726726
}
727727

728-
$this->assertTrue($exceptionThrown);
728+
$this->assertTrue($exceptionThrown, 'Failed asserting that the exception was thrown.');
729729
unlink('hyde.yml');
730730
}
731731

0 commit comments

Comments
 (0)