Bolt\Tests\Nut\ExtensionsSetupTest::testRunWithLocal PHP Method

testRunWithLocal() public method

public testRunWithLocal ( )
    public function testRunWithLocal()
    {
        $app = $this->getApp();
        $app['extend.action.options']->set('optimize-autoloader', true);
        $app['filesystem']->createDir('extensions://local');
        $command = new ExtensionsSetup($app);
        $tester = new CommandTester($command);
        $tester->execute([]);
        $result = $tester->getDisplay();
        $app['filesystem']->deleteDir('extensions://local');
        $this->assertRegExp('/Creating\\/updating composer.jsonā€¦ \\[DONE\\]/', $result);
        $this->assertRegExp('/Updating autoloadersā€¦ \\[DONE\\]/', $result);
        $this->assertRegExp('/Generating optimized autoload files/', $result);
        $this->assertRegExp('/PackageEventListener::dump/', $result);
    }
ExtensionsSetupTest