19 declare(strict_types=1);
31 $this->assertFalse($option->isPersisted());
37 $this->assertTrue($option->isPersisted());
43 $option->setPosition(103);
44 $this->assertTrue($option->containsChanges());
51 $this->assertTrue($option->hasTranslationInLanguage(
'lang'));
58 $this->assertFalse($option->hasTranslationInLanguage(
'other lang'));
67 $option->getTranslationInLanguage(
'lang')
74 $translation = $option->addTranslation(
'lang');
77 $option->getTranslations()->current()
86 $this->expectException(Exception::class);
87 $option->addTranslation(
'lang');
94 $option->removeTranslation(
'lang');
95 $this->assertFalse($option->hasTranslationInLanguage(
'lang'));
102 $option->removeTranslation(
'lang');
103 $this->assertTrue($option->containsChanges());