Skip to content

Commit

Permalink
fixing cli tests
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Nov 18, 2022
1 parent f50c675 commit 6e405a6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/_data/fixtures/Traits/CliTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@

namespace Phalcon\Tests\Fixtures\Traits;

use Phalcon\Annotations\Adapter\Memory;
use Phalcon\Cli\Dispatcher;
use Phalcon\Cli\Router;
use Phalcon\Encryption\Security;
use Phalcon\Events\Manager as EventsManager;
use Phalcon\Filter\Filter;
use Phalcon\Html\Escaper;
use Phalcon\Mvc\Model\Manager;
use Phalcon\Mvc\Model\MetaData\Memory as MetadataMemory;
use Phalcon\Mvc\Model\Transaction\Manager as TransactionManager;
use Phalcon\Support\HelperFactory;

trait CliTrait
Expand Down Expand Up @@ -80,6 +84,10 @@ protected function getExamplesShortPaths(): array
private function getServices(): array
{
return [
[
'service' => 'annotations',
'class' => Memory::class,
],
[
'service' => 'dispatcher',
'class' => Dispatcher::class,
Expand All @@ -100,6 +108,14 @@ private function getServices(): array
'service' => 'helper',
'class' => HelperFactory::class,
],
[
'service' => 'modelsManager',
'class' => Manager::class,
],
[
'service' => 'modelsMetadata',
'class' => MetadataMemory::class,
],
[
'service' => 'router',
'class' => Router::class,
Expand All @@ -108,6 +124,10 @@ private function getServices(): array
'service' => 'security',
'class' => Security::class,
],
[
'service' => 'transactionManager',
'class' => TransactionManager::class,
],
];
}
}

0 comments on commit 6e405a6

Please sign in to comment.