Completed
Push — master ( 14eaec...c0ed6e )
by Nicolas
06:58
created
Tests/MenuItemTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     public function it_can_create_a_dropdown_menu_item()
106 106
     {
107 107
         $menuItem = MenuItem::make(['title' => 'Parent Item']);
108
-        $menuItem->dropdown('Dropdown item', function (MenuItem $sub) {
108
+        $menuItem->dropdown('Dropdown item', function(MenuItem $sub) {
109 109
             $sub->url('settings/account', 'Account');
110 110
             $sub->url('settings/password', 'Password');
111 111
         });
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     public function it_can_make_a_simple_route_menu_item()
118 118
     {
119 119
         $menuItem = MenuItem::make(['title' => 'Parent Item']);
120
-        $menuItem->dropdown('Dropdown item', function (MenuItem $sub) {
120
+        $menuItem->dropdown('Dropdown item', function(MenuItem $sub) {
121 121
             $sub->route('settings.account', 'Account', ['user_id' => 1]);
122 122
         });
123 123
         $children = $menuItem->getChilds()[0]->getChilds();
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     public function it_can_make_a_route_menu_item()
133 133
     {
134 134
         $menuItem = MenuItem::make(['title' => 'Parent Item']);
135
-        $menuItem->dropdown('Dropdown item', function (MenuItem $sub) {
135
+        $menuItem->dropdown('Dropdown item', function(MenuItem $sub) {
136 136
             $sub->route('settings.account', 'Account', ['user_id' => 1], 1, ['my-attr' => 'value']);
137 137
         });
138 138
         $children = $menuItem->getChilds()[0]->getChilds();
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     public function it_can_make_a_simple_url_menu_item()
150 150
     {
151 151
         $menuItem = MenuItem::make(['title' => 'Parent Item']);
152
-        $menuItem->dropdown('Dropdown item', function (MenuItem $sub) {
152
+        $menuItem->dropdown('Dropdown item', function(MenuItem $sub) {
153 153
             $sub->url('settings/account', 'Account');
154 154
         });
155 155
         $children = $menuItem->getChilds()[0]->getChilds();
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     public function it_can_make_a_url_menu_item()
165 165
     {
166 166
         $menuItem = MenuItem::make(['title' => 'Parent Item']);
167
-        $menuItem->dropdown('Dropdown item', function (MenuItem $sub) {
167
+        $menuItem->dropdown('Dropdown item', function(MenuItem $sub) {
168 168
             $sub->url('settings/account', 'Account', 1, ['my-attr' => 'value']);
169 169
         });
170 170
         $children = $menuItem->getChilds()[0]->getChilds();
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     public function it_can_add_a_menu_item_divider()
182 182
     {
183 183
         $menuItem = MenuItem::make(['title' => 'Parent Item']);
184
-        $menuItem->dropdown('Dropdown item', function (MenuItem $sub) {
184
+        $menuItem->dropdown('Dropdown item', function(MenuItem $sub) {
185 185
             $sub->url('settings/account', 'Account');
186 186
             $sub->divider();
187 187
         });
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     public function it_can_add_a_header_menu_item()
199 199
     {
200 200
         $menuItem = MenuItem::make(['title' => 'Parent Item']);
201
-        $menuItem->dropdown('Dropdown item', function (MenuItem $sub) {
201
+        $menuItem->dropdown('Dropdown item', function(MenuItem $sub) {
202 202
             $sub->header('User Stuff');
203 203
             $sub->url('settings/account', 'Account');
204 204
         });
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     {
226 226
         $this->app['router']->get('settings/account', ['as' => 'settings.account']);
227 227
         $menuItem = MenuItem::make(['title' => 'Parent Item']);
228
-        $menuItem->dropdown('Dropdown item', function (MenuItem $sub) {
228
+        $menuItem->dropdown('Dropdown item', function(MenuItem $sub) {
229 229
             $sub->route('settings.account', 'Account');
230 230
         });
231 231
         $children = $menuItem->getChilds()[0]->getChilds();
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
     public function it_can_check_for_a_submenu()
287 287
     {
288 288
         $menuItem = MenuItem::make(['title' => 'Parent Item']);
289
-        $menuItem->dropdown('Dropdown item', function (MenuItem $sub) {
289
+        $menuItem->dropdown('Dropdown item', function(MenuItem $sub) {
290 290
             $sub->header('User Stuff');
291 291
             $sub->url('settings/account', 'Account');
292 292
         });
Please login to merge, or discard this patch.