Example #1
0
 public function testCanCreateWithBody()
 {
     $modal = Modal::withBody("Foo bar", "bar", $this->getAttributes());
     $matcher = $this->getMatcher();
     $matcher['descendant'] = array(
         'tag' => 'div',
         'attributes' => array(
             'class' => 'modal-body'
         ),
         'content' => 'Foo bar'
     );
     $this->assertHTML($matcher, $modal);
 }
Example #2
0
 /**
  * Sets the body of the modal
  *
  * @param string $body The new body of the modal
  * @return $this 
  * @static 
  */
 public static function withBody($body)
 {
     return \Bootstrapper\Modal::withBody($body);
 }