示例#1
0
 /**
  * @covers JHtmlBatch::language
  */
 public function testLanguage()
 {
     $this->assertThat(JHtmlBatch::language(), $this->StringContains('<option value="en-GB">English (UK)</option>'));
 }
示例#2
0
 /**
  * Tests the language method.
  *
  * @return  void
  *
  * @since   3.1
  */
 public function testLanguage()
 {
     $result = JHtmlBatch::language();
     // Build the container to check the <label> element
     $matcher = array('id' => 'batch-language-lbl', 'tag' => 'label', 'content' => 'JLIB_HTML_BATCH_LANGUAGE_LABEL');
     $this->assertTag($matcher, $result, 'Expected a <label> with id "batch-language-lbl"');
     // Build the container to check the <select> element
     $matcher = array('id' => 'batch-language-id', 'tag' => 'select', 'child' => array('tag' => 'option', 'content' => 'English (en-GB)', 'attributes' => array('value' => 'en-GB')));
     $this->assertTag($matcher, $result, 'Expected a <select> element with id "batch-language-id" containing a child <option value="en-GB">English (UK)</option>');
 }