Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e2da553f

Von Moritz Bunkus vor fast 12 Jahren hinzugefügt

  • ID e2da553ff383556b6277040b2454a2d06ee70174
  • Vorgänger ec27f677
  • Nachfolger 2d6a42ee

Testcase für SL::Controller::Base::render() gefixt

Unterschiede anzeigen:

t/controllers/base/render.t
20 20
    layout => SL::Layout::Javascript->new,
21 21
  };
22 22

  
23
  $::myconfig{stylesheet} = 'javascript';
23
  $::myconfig{menustyle} = 'javascript';
24 24

  
25 25
  delete @{ $::form }{qw(header footer)};
26 26
}
......
65 65

  
66 66
# Menu yes/no:
67 67
reset_test_env();
68
stdout_like { $ctrl->render(\'Hallo [% world %]', world => 'Welt') } qr/<table.*class=.*menunew/i, 'HTML header & menu with header=1';
68
stdout_like { $ctrl->render(\'Hallo [% world %]', world => 'Welt') } qr/<div.*id="main_menu_div".*<ul.*id="main_menu_model"/is, 'HTML header & menu with header=1';
69 69

  
70 70
reset_test_env();
71
stdout_unlike { $ctrl->render(\'Hallo [% world %]', { header => 0 }, world => 'Welt') } qr/<table.*class=.*menunew/i, 'HTML header & menu with header=0';
71
stdout_unlike { $ctrl->render(\'Hallo [% world %]', { header => 0 }, world => 'Welt') } qr/<div.*id="main_menu_div".*<ul.*id="main_menu_model"/is, 'HTML header & menu with header=0';
72 72

  
73 73
reset_test_env();
74
stdout_unlike { $ctrl->render(\'Hallo [% world %]', { layout => 0 }, world => 'Welt') } qr/<table.*class=.*menunew/i, 'HTML header & menu with layout=0';
74
stdout_unlike { $ctrl->render(\'Hallo [% world %]', { layout => 0 }, world => 'Welt') } qr/<div.*id="main_menu_div".*<ul.*id="main_menu_model"/is, 'HTML header & menu with layout=0';
75 75

  
76 76
done_testing;
77 77

  

Auch abrufbar als: Unified diff