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'));
 }
Example #2
0
 public function testGetCommandList()
 {
     $app = __setupApp();
     $console = new Console($app, true);
     $console->addCommands(array('\\Skully\\Tests\\Commands\\NewCommand'));
     $list = $console->getCommands();
     $listString = array();
     foreach ($list as $item) {
         $listString[] = get_class($item);
     }
     $this->assertTrue(in_array('Skully\\Commands\\EncryptCommand', $listString));
     $this->assertTrue(in_array('Skully\\Commands\\DecryptCommand', $listString));
     $this->assertTrue(in_array('Skully\\Commands\\SchemaCommand', $listString));
     $this->assertTrue(in_array('Skully\\Commands\\PackCommand', $listString));
     $this->assertTrue(in_array('Skully\\Tests\\Commands\\NewCommand', $listString));
 }