Exemplo n.º 1
0
 /**
  * Returns the simulated view.
  *
  * @return Zend_View
  */
 protected function getView()
 {
     return $this->bootstrapper->getResource('view');
 }
 /**
  * Checks if getResource() returns the bootstrapped resource.
  */
 public function testGetResourceReturnsBootstrappedResource()
 {
     $this->injectBootstrapper();
     $resource = $this->plugin->execute('getResource', array('objectResource'));
     $this->assertSame($this->bootstrapper->getResource('objectResource'), $resource);
 }
Exemplo n.º 3
0
 /**
  * Ensures that simulateResource() normalizes the resource name
  * in the same way as the other bootstrap methods do (lowercase).
  */
 public function testSimulateResourceNormalizesResourceName()
 {
     $this->bootstrapper->simulateResource('camelCase', 'test');
     $this->assertEquals('test', $this->bootstrapper->getResource('camelCase'));
 }
 /**
  * Creates the simulated layout action helper.
  *
  * @return Zend_Layout_Controller_Action_Helper_Layout
  */
 protected function createLayoutHelper()
 {
     return new Zend_Layout_Controller_Action_Helper_Layout($this->bootstrapper->getResource('layout'));
 }