[ [ 'label' => 'Page1', 'content' => 'Page1', ], [ 'label' => 'Page2', 'content' => 'Page2', ], ] ]); $this->assertContainsWithoutLE('
Content 1
Content 2
HTML; $this->assertEquals($expected, $html); } public function testHeaderOptions() { Tabs::$counter = 0; $html = Tabs::widget([ 'items' => [ [ 'label' => 'Tab 1', 'content' => '
Content 1
', ], [ 'label' => 'Tab 2', 'content' => '
Content 2
', 'headerOptions' => ['class' => 'col-6'], ], [ 'label' => 'Link', 'url' => 'http://www.example.com/', 'headerOptions' => ['class' => 'col-3'], ], ], 'options' => ['class' => 'row'], 'headerOptions' => ['class' => 'col'], ]); $expected = <<
Content 1
Content 2
HTML; $this->assertEquals($expected, $html); } }