public function ResponsiveMenuAdminTest::testWarningWithNoBreakpoints in Responsive and off-canvas menu 4.3.x
Same name and namespace in other branches
- 4.4.x tests/src/Functional/ResponsiveMenuAdminTest.php \Drupal\Tests\responsive_menu\Functional\ResponsiveMenuAdminTest::testWarningWithNoBreakpoints()
- 4.1.x tests/src/Functional/ResponsiveMenuAdminTest.php \Drupal\Tests\responsive_menu\Functional\ResponsiveMenuAdminTest::testWarningWithNoBreakpoints()
Tests that #3137461 is fixed.
There should be no warning if there are no breakpoints defined.
File
- tests/
src/ Functional/ ResponsiveMenuAdminTest.php, line 89
Class
- ResponsiveMenuAdminTest
- Class SettingsPageTest.
Namespace
Drupal\Tests\responsive_menu\FunctionalCode
public function testWarningWithNoBreakpoints() {
\Drupal::service('theme_installer')
->install([
'responsive_menu_theme_test_nobp',
]);
\Drupal::configFactory()
->getEditable('system.theme')
->set('default', 'responsive_menu_theme_test_nobp')
->save();
$this
->drupalGet('/admin/config/user-interface/responsive-menu');
$this
->assertSession()
->pageTextNotContains('Warning: htmlspecialchars() expects parameter 1 to be string, object given');
}