3 namespace Tests\Wallabag\CoreBundle\Entity
;
5 use Tests\Wallabag\CoreBundle\WallabagCoreTestCase
;
6 use Wallabag\CoreBundle\Entity\Entry
;
8 class EntryTest
extends WallabagCoreTestCase
10 public function testGetLanguage()
12 $this->logInAs('admin');
13 $entry = new Entry($this->getLoggedInUser());
23 foreach ($languages as $entryLang => $lang) {
24 $entry->setLanguage($entryLang);
25 $this->assertSame($lang, $entry->getHTMLLanguage());