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); }
/** * 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); }