'My Company', 'brandUrl' => '/', 'options' => [ 'class' => 'navbar-inverse navbar-static-top navbar-frontend', ], ]); $expected = <<
EXPECTED; $this->assertEqualsWithoutLE($expected, $out); } public function testBrandImage() { $out = NavBar::widget([ 'brandImage' => '/images/test.jpg', 'brandUrl' => '/', ]); $this->assertContains('', $out); } public function testHeaderContent() { $testContent = <<
HTML; $out = NavBar::widget([ 'headerContent' => $testContent, ]); $this->assertContains($testContent, $out); } }