Bolt\Tests\Nut\ExtensionsSetupTest::testRun PHP Метод

testRun() публичный Метод

public testRun ( )
    public function testRun()
    {
        $app = $this->getApp();
        $app['extend.action.options']->set('optimize-autoloader', true);
        $command = new ExtensionsSetup($app);
        $tester = new CommandTester($command);
        $tester->execute([]);
        $result = $tester->getDisplay();
        $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