protected function MetatagHelperTrait::verbose in Metatag 8
3 calls to MetatagHelperTrait::verbose()
- MetatagTagsTestBase::testTagsInputOutput in tests/
src/ Functional/ MetatagTagsTestBase.php - Confirm that each tag can be saved and that the output is correct.
- NodeJsonOutput::testNode in tests/
src/ Functional/ NodeJsonOutput.php - Create an entity, view its JSON output, confirm Metatag data exists.
- PermissionsTest::testUserPerms in metatag_extended_perms/
tests/ src/ Functional/ PermissionsTest.php - Confirm that the node form is affected for a limited-access user.
File
- tests/
src/ Functional/ MetatagHelperTrait.php, line 39
Class
- MetatagHelperTrait
- Misc helper functions for the automated tests.
Namespace
Drupal\Tests\metatag\FunctionalCode
protected function verbose($message, $title = NULL) {
// Handle arrays, objects, etc.
if (!is_string($message)) {
$message = "<pre>\n" . print_r($message, TRUE) . "\n</pre>\n";
}
// Optional title to go before the output.
if (!empty($title)) {
$title = '<h2>' . Html::escape($title) . "</h2>\n";
}
parent::verbose($title . $message);
}