public function testOptionsPassedToResourceAreUsedToSetDojosContainerState() { $options = array('requireModules' => array('DojoTest'), 'localPath' => '/ofc/ZF/Rules/'); $resource = new DojoResource($options); $resource->setBootstrap($this->bootstrap); $resource->init(); $resource->getBootstrap()->bootstrap('view'); $dojo = $resource->getBootstrap()->view->dojo(); $test = array('requireModules' => $dojo->getModules(), 'localPath' => $dojo->getLocalPath()); $this->assertEquals($options, $test); }