Ejemplo n.º 1
0
 function testInitScripts()
 {
     global $action;
     $scriptStub = new WpScriptIncludes();
     $si = new ScriptIncludes($scriptStub);
     $si->register($this->getTestFI());
     $si->enqueue('administration', $this->getTestFI());
     $si->init();
     $this->assertArrayHasKey('admin_enqueue_scripts', $action);
 }
Ejemplo n.º 2
0
 /**
  * Enqueue the resource to be loaded.
  *
  * @param string $location
  */
 public function enqueue($location)
 {
     $si = new ScriptIncludes();
     $si->enqueue($location, $this->getHandle());
 }