aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Tests/Mock/InstallCommandMock.php
diff options
context:
space:
mode:
authorJeremy <jeremy.benoist@gmail.com>2015-03-28 21:45:35 +0100
committerJeremy <jeremy.benoist@gmail.com>2015-03-31 22:48:01 +0200
commit0ee043f745fc53d782528128c615aa24a6af1d24 (patch)
tree9ac6e40e10d078a0bbd87e69fb99a083fb29f2aa /src/Wallabag/CoreBundle/Tests/Mock/InstallCommandMock.php
parent371ac69a6bd6325929e4efee7958682a6b1666f7 (diff)
downloadwallabag-0ee043f745fc53d782528128c615aa24a6af1d24.tar.gz
wallabag-0ee043f745fc53d782528128c615aa24a6af1d24.tar.zst
wallabag-0ee043f745fc53d782528128c615aa24a6af1d24.zip
Update InstallCommand test
They are god damn too long to execute because it launch external command (mostly related to doctrine). So I've added a PHPUnit @group (`command-doctrine`) so that we can avoid launching them on a regular basis, like that: `phpunit --exclude-group command-doctrine`
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Mock/InstallCommandMock.php')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Mock/InstallCommandMock.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Mock/InstallCommandMock.php b/src/Wallabag/CoreBundle/Tests/Mock/InstallCommandMock.php
new file mode 100644
index 00000000..69bc48e0
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Tests/Mock/InstallCommandMock.php
@@ -0,0 +1,22 @@
1<?php
2
3namespace Wallabag\CoreBundle\Tests\Mock;
4
5use Wallabag\CoreBundle\Command\InstallCommand;
6
7/**
8 * This mock aims to speed the test of InstallCommand by avoid calling external command
9 * like all doctrine commands.
10 *
11 * This speed the test but as a downside, it doesn't allow to fully test the InstallCommand
12 *
13 * Launching tests to avoid doctrine command:
14 * phpunit --exclude-group command-doctrine
15 */
16class InstallCommandMock extends InstallCommand
17{
18 protected function runCommand($command, $parameters = array())
19 {
20 return $this;
21 }
22}