diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php b/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php index 90483480..1cb5a233 100644 --- a/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php +++ b/src/Wallabag/ImportBundle/Tests/Import/WallabagV1ImportTest.php | |||
@@ -21,17 +21,17 @@ class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase | |||
21 | ->disableOriginalConstructor() | 21 | ->disableOriginalConstructor() |
22 | ->getMock(); | 22 | ->getMock(); |
23 | 23 | ||
24 | $pocket = new WallabagV1Import($this->em); | 24 | $wallabag = new WallabagV1Import($this->em); |
25 | 25 | ||
26 | $this->logHandler = new TestHandler(); | 26 | $this->logHandler = new TestHandler(); |
27 | $logger = new Logger('test', array($this->logHandler)); | 27 | $logger = new Logger('test', array($this->logHandler)); |
28 | $pocket->setLogger($logger); | 28 | $wallabag->setLogger($logger); |
29 | 29 | ||
30 | if (false === $unsetUser) { | 30 | if (false === $unsetUser) { |
31 | $pocket->setUser($this->user); | 31 | $wallabag->setUser($this->user); |
32 | } | 32 | } |
33 | 33 | ||
34 | return $pocket; | 34 | return $wallabag; |
35 | } | 35 | } |
36 | 36 | ||
37 | public function testInit() | 37 | public function testInit() |
@@ -77,7 +77,7 @@ class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase | |||
77 | $this->assertFalse($res); | 77 | $this->assertFalse($res); |
78 | 78 | ||
79 | $records = $this->logHandler->getRecords(); | 79 | $records = $this->logHandler->getRecords(); |
80 | $this->assertContains('WallabagV1Import: unable to read file', $records[0]['message']); | 80 | $this->assertContains('WallabagImport: unable to read file', $records[0]['message']); |
81 | $this->assertEquals('ERROR', $records[0]['level_name']); | 81 | $this->assertEquals('ERROR', $records[0]['level_name']); |
82 | } | 82 | } |
83 | 83 | ||
@@ -91,7 +91,7 @@ class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase | |||
91 | $this->assertFalse($res); | 91 | $this->assertFalse($res); |
92 | 92 | ||
93 | $records = $this->logHandler->getRecords(); | 93 | $records = $this->logHandler->getRecords(); |
94 | $this->assertContains('WallabagV1Import: user is not defined', $records[0]['message']); | 94 | $this->assertContains('WallabagImport: user is not defined', $records[0]['message']); |
95 | $this->assertEquals('ERROR', $records[0]['level_name']); | 95 | $this->assertEquals('ERROR', $records[0]['level_name']); |
96 | } | 96 | } |
97 | } | 97 | } |