aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Wallabag/CoreBundle/CoreKernelTestCase.php17
-rw-r--r--tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php7
2 files changed, 4 insertions, 20 deletions
diff --git a/tests/Wallabag/CoreBundle/CoreKernelTestCase.php b/tests/Wallabag/CoreBundle/CoreKernelTestCase.php
deleted file mode 100644
index d14421f1..00000000
--- a/tests/Wallabag/CoreBundle/CoreKernelTestCase.php
+++ /dev/null
@@ -1,17 +0,0 @@
1<?php
2
3namespace tests\Wallabag\CoreBundle;
4
5use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
6
7abstract class CoreKernelTestCase extends KernelTestCase
8{
9 protected $fetchingErrorMessage;
10
11 public function setUp()
12 {
13 self::bootKernel();
14 $container = self::$kernel->getContainer();
15 $this->fetchingErrorMessage = $container->getParameter('wallabag_core.fetching_error_message');
16 }
17}
diff --git a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php
index 55e4d506..2ca13b91 100644
--- a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php
+++ b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php
@@ -1,16 +1,17 @@
1<?php 1<?php
2 2
3namespace tests\Wallabag\CoreBundle\Helper; 3namespace Tests\Wallabag\CoreBundle\Helper;
4 4
5use Psr\Log\NullLogger; 5use Psr\Log\NullLogger;
6use Wallabag\CoreBundle\Helper\ContentProxy; 6use Wallabag\CoreBundle\Helper\ContentProxy;
7use Wallabag\CoreBundle\Entity\Entry; 7use Wallabag\CoreBundle\Entity\Entry;
8use Wallabag\CoreBundle\Entity\Tag; 8use Wallabag\CoreBundle\Entity\Tag;
9use Wallabag\UserBundle\Entity\User; 9use Wallabag\UserBundle\Entity\User;
10use Tests\Wallabag\CoreBundle\CoreKernelTestCase;
11 10
12class ContentProxyTest extends CoreKernelTestCase 11class ContentProxyTest extends \PHPUnit_Framework_TestCase
13{ 12{
13 private $fetchingErrorMessage = 'wallabag can\'t retrieve contents for this article. Please <a href="http://doc.wallabag.org/en/master/user/errors_during_fetching.html#how-can-i-help-to-fix-that">troubleshoot this issue</a>.';
14
14 public function testWithBadUrl() 15 public function testWithBadUrl()
15 { 16 {
16 $tagger = $this->getTaggerMock(); 17 $tagger = $this->getTaggerMock();