Example #1
0
    public function testCanCreateWithFooter()
    {

        $modal = Modal::withFooter("Foo bar", "bar", $this->getAttributes());

        $matcher = $this->getMatcher();
        $matcher['descendant'] = array(
            'tag' => 'div',
            'attributes' => array(
                'class' => 'modal-footer'
            ),
            'content' => "Foo bar",
        );

        $this->assertHTML($matcher, $modal);
    }
Example #2
0
 /**
  * Set the footer of the modal
  *
  * @param string $footer The footer
  * @return $this 
  * @static 
  */
 public static function withFooter($footer)
 {
     return \Bootstrapper\Modal::withFooter($footer);
 }