You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							31 lines
						
					
					
						
							744 B
						
					
					
				
			
		
		
	
	
							31 lines
						
					
					
						
							744 B
						
					
					
				| <?php | |
| namespace yiiunit\extensions\bootstrap; | |
|  | |
| use yii\bootstrap\ButtonDropdown; | |
|  | |
| /** | |
|  * @group bootstrap | |
|  */ | |
| class ButtonDropdownTest extends TestCase | |
| { | |
|     public function testContainerOptions() | |
|     { | |
|         $containerClass = "dropup"; | |
|  | |
|         ButtonDropdown::$counter = 0; | |
|         $out = ButtonDropdown::widget([ | |
|             'containerOptions' => [ | |
|                 'class' => $containerClass, | |
|             ], | |
|             'label' => 'Action', | |
|             'dropdown' => [ | |
|                 'items' => [ | |
|                     ['label' => 'DropdownA', 'url' => '/'], | |
|                     ['label' => 'DropdownB', 'url' => '#'], | |
|                 ], | |
|             ], | |
|         ]); | |
|  | |
|         $this->assertContains("$containerClass btn-group", $out); | |
|     } | |
| }
 | |
| 
 |