Beispiel #1
0
 /**
  * Test render bootstrap tabs.
  *
  * @return void
  */
 public function testTabsRender()
 {
     $tabs = $this->Union->tabs('my-tabs', ['myAlias' => 'First label', 'arrayData' => ['title' => 'Custom title', 'class' => 'custom']]);
     $expected = ['ul' => ['class' => 'nav nav-tabs', 'id' => 'my-tabs'], ['li' => ['class' => 'active']], ['a' => ['href' => '#my-alias', 'title' => 'First label', 'data-toggle' => 'tab', 'class' => 'un-link']], ['span' => ['class' => 'un-link-title']], 'First label', '/span', '/a', '/li', ['li' => ['class' => 'custom']], ['a' => ['href' => '#array-data', 'title' => 'Custom title', 'data-toggle' => 'tab', 'class' => 'un-link']], ['span' => ['class' => 'un-link-title']], 'Custom title', '/span', '/a', '/li', '/ul'];
     $this->assertHtml($expected, $tabs);
 }