Skip to content
Snippets Groups Projects

Resolve #2795567 "Allow Symfony dump() to work in kernel and browser tests"

Open Resolve #2795567 "Allow Symfony dump() to work in kernel and browser tests"
9 unresolved threads
9 unresolved threads
Files
10
@@ -2,6 +2,8 @@
namespace Drupal\test_page_test\Controller;
use Drupal\user\Entity\Role;
/**
* Controller routines for test_page_test routes.
*/
@@ -23,4 +25,16 @@ public function testPage() {
];
}
/**
* Returns a test page and with the call to the dump() method.
*/
public function testPageVarDump() {
$role = Role::create(['id' => 'test_role']);
dump($role);
return [
'#title' => t('Test page with var dump'),
'#markup' => t('Test page text.'),
];
}
}
Loading