mirror of
https://github.com/Karaka-Management/oms-Tag.git
synced 2026-01-11 07:38:41 +00:00
fix unit tests
This commit is contained in:
parent
7737971ea1
commit
2c7ef8f689
|
|
@ -43,7 +43,7 @@ class TagL11nMapperTest extends \PHPUnit\Framework\TestCase
|
|||
$l11n = new TagL11n();
|
||||
$l11n->title = 'TestTitle';
|
||||
$l11n->setLanguage(ISO639x1Enum::_EN);
|
||||
$l11n->setTag($id);
|
||||
$l11n->tag = $id;
|
||||
|
||||
$id = TagL11nMapper::create($l11n);
|
||||
self::assertGreaterThan(0, $l11n->getId());
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class TagL11nTest extends \PHPUnit\Framework\TestCase
|
|||
public function testDefault() : void
|
||||
{
|
||||
self::assertEquals(0, $this->l11n->getId());
|
||||
self::assertEquals(0, $this->l11n->getTag());
|
||||
self::assertEquals(0, $this->l11n->tag);
|
||||
self::assertEquals('', $this->l11n->title);
|
||||
self::assertEquals(ISO639x1Enum::_EN, $this->l11n->getLanguage());
|
||||
}
|
||||
|
|
@ -50,8 +50,8 @@ class TagL11nTest extends \PHPUnit\Framework\TestCase
|
|||
*/
|
||||
public function testTagInputOutput() : void
|
||||
{
|
||||
$this->l11n->setTag(2);
|
||||
self::assertEquals(2, $this->l11n->getTag());
|
||||
$this->l11n->tag = 2;
|
||||
self::assertEquals(2, $this->l11n->tag);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -81,7 +81,7 @@ class TagL11nTest extends \PHPUnit\Framework\TestCase
|
|||
public function testSerialize() : void
|
||||
{
|
||||
$this->l11n->title = 'Title';
|
||||
$this->l11n->setTag(2);
|
||||
$this->l11n->tag = 2;
|
||||
$this->l11n->setLanguage(ISO639x1Enum::_DE);
|
||||
|
||||
self::assertEquals(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user