Exemplo n.º 1
0
 /**
  * Test if a bundle activated above is deactivated here.
  *
  * @return null
  */
 public function testDeactivate()
 {
     $this->assertTrue(iBundle::deactivate('docs'));
 }
Exemplo n.º 2
0
| in v1.1.0 and above, tasks are called using the IoC container. Each artisan command has its
| unique identity that is always being looked for before each command is run,
| iBundle takes advantage of this to allow a flexible test class with injected dependency.
|
*/
require IBUNDLE_ROOT . 'tasks/dependencies.php';
/*
|----------------------------------------------------------------------------------------------
| Register the activated bundles.
|----------------------------------------------------------------------------------------------
|
| Register the activated bundles, thus making it available to other parts of
| Laravel.
|
*/
iBundle::register();
/**
 * Helper to get and set (optional) a config item from the iBundle configuration file.
 *
 * @param  string  $key
 * @param  mixed $value
 * @return mixed
 */
function ibundle_config($key, $value = '')
{
    if ($value !== '') {
        // Set a config key value
        with(new iBundle\Config())->set($key, $value);
    }
    return with(new iBundle\Config())->get($key);
}