Exemplo n.º 1
0
 protected function migrate()
 {
     ob_start();
     $console = new Console($this->app, true);
     $output = $console->run("skully:schema db:migrate test");
     ob_clean();
 }
Exemplo n.º 2
0
 protected function migrate()
 {
     ob_start();
     $argv = array('console', 'skully:schema', 'db:migrate');
     $consoleApp = new Console($this->app, true);
     array_shift($argv);
     try {
         $consoleApp->run(implode(' ', $argv));
     } catch (\Exception $e) {
         echo $e->getMessage();
     }
     ob_clean();
 }
 public function testCreateNewFile2()
 {
     $app = __setupApp();
     $console = new Console($app, true);
     $console->addCommands($app->config('additionalCommands'));
     /**
      * @var SkullyAwsS3\S3Client $s3client
      * @var SkullyAwsS3\S3ApplicationTrait $app
      */
     $s3client = $app->getS3Client();
     $this->assertTrue($s3client->isObject('text.txt'));
     $this->assertFalse($s3client->isObject('TestApp/appfile.txt'));
 }
Exemplo n.º 4
0
 public function testPackCommand()
 {
     $app = __setupApp();
     $console = new Console($app, true);
     $packedPath = FileHelper::replaceSeparators(realpath(__DIR__ . '/packerTest/packed.js'));
     if (file_exists($packedPath)) {
         unlink($packedPath);
     }
     $this->assertFalse(file_exists($packedPath));
     ob_get_clean();
     ob_start();
     $output = $console->run("skully:pack Commands/packerTest/packerTest.txt");
     // Cannot test this on Windows somehow, so just check if pack command is running.
     $this->assertNotEmpty($output);
 }