diff --git a/test/ViewModel/Converter/TeaserTermsBuilderTest.php b/test/ViewModel/Converter/TeaserTermsBuilderTest.php index d501b2db..ae824006 100644 --- a/test/ViewModel/Converter/TeaserTermsBuilderTest.php +++ b/test/ViewModel/Converter/TeaserTermsBuilderTest.php @@ -2,9 +2,13 @@ namespace test\eLife\Journal\ViewModel\Converter; +use eLife\ApiSdk\Model\ElifeAssessment; use eLife\Journal\ViewModel\Converter\ReviewedPreprintTeaserConverter; +use eLife\Journal\ViewModel\Converter\TeaserTermsBuilder; use eLife\Journal\ViewModel\Converter\ViewModelConverter; use eLife\Patterns\ViewModel; +use eLife\Patterns\ViewModel\TeaserTerms; +use eLife\Patterns\ViewModel\Term; use PHPUnit\Framework\TestCase; final class TeaserTermsBuilderTest extends TestCase @@ -14,7 +18,13 @@ final class TeaserTermsBuilderTest extends TestCase */ final public function it_builds_significance_terms_when_there_are_significance_terms() { - $this->markTestIncomplete('incomplete'); + $builder = new TeaserTermsBuilder(); + + $elifeAssessment = new ElifeAssessment(['Landmark'], null); + $result = $builder->build($elifeAssessment); + + $expected = new TeaserTerms([new Term('Landmark')]); + $this->assertEquals($expected, $result); } /**