false, 'bodyOptions' => ['class' => 'modal-body test', 'style' => 'text-align:center;'] ]); $expected = <<
Woohoo, you\'re reading this text in a modal!
'; Modal::end(); $out = ob_get_clean(); $expected = <<Woohoo, you\'re reading this text in a modal!
'; Modal::end(); $out = ob_get_clean(); $this->assertContains('', $out); } public function testDialogOptions() { Modal::$counter = 0; $out = Modal::widget([ 'closeButton' => false, 'dialogOptions' => ['class' => 'test', 'style' => 'text-align:center;'] ]); $expected = <<