예제 #1
0
 /**
  * Tests the JApplicationWeb::render method.
  *
  * @return  void
  *
  * @since   11.3
  */
 public function testRender()
 {
     $document = $this->getMockDocument();
     $this->assignMockReturns($document, array('render' => 'JWeb Body'));
     // Manually inject the document.
     $this->inspector->setClassProperty('document', $document);
     $this->inspector->render();
     $this->assertThat($this->inspector->getClassProperty('response')->body, $this->equalTo(array('JWeb Body')));
 }