tests/Doctrine/Tests/ORM/Tools/Console/Command/ClearCacheCollectionRegionCommandTest.php 1 location
|
@@ 28-43 (lines=16) @@
|
| 25 |
|
*/ |
| 26 |
|
private $command; |
| 27 |
|
|
| 28 |
|
protected function setUp() |
| 29 |
|
{ |
| 30 |
|
$this->enableSecondLevelCache(); |
| 31 |
|
parent::setUp(); |
| 32 |
|
|
| 33 |
|
$this->command = new CollectionRegionCommand(); |
| 34 |
|
|
| 35 |
|
$this->application = new Application(); |
| 36 |
|
$this->application->setHelperSet(new HelperSet(['em' => new EntityManagerHelper($this->_em)])); |
| 37 |
|
$this->application->add($this->command); |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
public function testClearAllRegion() |
| 41 |
|
{ |
| 42 |
|
$command = $this->application->find('orm:clear-cache:region:collection'); |
| 43 |
|
$tester = new CommandTester($command); |
| 44 |
|
|
| 45 |
|
$tester->execute( |
| 46 |
|
[ |
tests/Doctrine/Tests/ORM/Tools/Console/Command/ClearCacheEntityRegionCommandTest.php 1 location
|
@@ 28-43 (lines=16) @@
|
| 25 |
|
*/ |
| 26 |
|
private $command; |
| 27 |
|
|
| 28 |
|
protected function setUp() |
| 29 |
|
{ |
| 30 |
|
$this->enableSecondLevelCache(); |
| 31 |
|
parent::setUp(); |
| 32 |
|
|
| 33 |
|
$this->command = new EntityRegionCommand(); |
| 34 |
|
|
| 35 |
|
$this->application = new Application(); |
| 36 |
|
$this->application->setHelperSet(new HelperSet(['em' => new EntityManagerHelper($this->_em)])); |
| 37 |
|
$this->application->add($this->command); |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
public function testClearAllRegion() |
| 41 |
|
{ |
| 42 |
|
$command = $this->application->find('orm:clear-cache:region:entity'); |
| 43 |
|
$tester = new CommandTester($command); |
| 44 |
|
|
| 45 |
|
$tester->execute( |
| 46 |
|
[ |
tests/Doctrine/Tests/ORM/Tools/Console/Command/ClearCacheQueryRegionCommandTest.php 1 location
|
@@ 27-42 (lines=16) @@
|
| 24 |
|
*/ |
| 25 |
|
private $command; |
| 26 |
|
|
| 27 |
|
protected function setUp() |
| 28 |
|
{ |
| 29 |
|
$this->enableSecondLevelCache(); |
| 30 |
|
parent::setUp(); |
| 31 |
|
|
| 32 |
|
$this->command = new QueryRegionCommand(); |
| 33 |
|
|
| 34 |
|
$this->application = new Application(); |
| 35 |
|
$this->application->setHelperSet(new HelperSet(['em' => new EntityManagerHelper($this->_em)])); |
| 36 |
|
$this->application->add($this->command); |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
public function testClearAllRegion() |
| 40 |
|
{ |
| 41 |
|
$command = $this->application->find('orm:clear-cache:region:query'); |
| 42 |
|
$tester = new CommandTester($command); |
| 43 |
|
|
| 44 |
|
$tester->execute( |
| 45 |
|
[ |
tests/Doctrine/Tests/ORM/Tools/Console/Command/InfoCommandTest.php 1 location
|
@@ 35-46 (lines=12) @@
|
| 32 |
|
*/ |
| 33 |
|
private $tester; |
| 34 |
|
|
| 35 |
|
protected function setUp() |
| 36 |
|
{ |
| 37 |
|
parent::setUp(); |
| 38 |
|
|
| 39 |
|
$this->application = new Application(); |
| 40 |
|
|
| 41 |
|
$this->application->setHelperSet(new HelperSet(['em' => new EntityManagerHelper($this->_em)])); |
| 42 |
|
$this->application->add(new InfoCommand()); |
| 43 |
|
|
| 44 |
|
$this->command = $this->application->find('orm:info'); |
| 45 |
|
$this->tester = new CommandTester($this->command); |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
public function testListAllClasses() |
| 49 |
|
{ |