Code Duplication    Length = 8-8 lines in 3 locations

tests/php/ContentReviewSettingsTest.php 3 locations

@@ 118-125 (lines=8) @@
115
        $this->assertEquals(date('Y-m-d', strtotime("now + " . $siteConfig->ReviewPeriodDays . " days")), $page->NextReviewDate);
116
    }
117
118
    public function testGetSettingsObjectFromCustom()
119
    {
120
        /** @var Page|SiteTreeContentReview $page */
121
        $page = $this->objFromFixture(Page::class, "custom");
122
123
        $this->assertEquals("Custom", $page->ContentReviewType);
124
        $this->assertEquals($page, $page->getOptions());
125
    }
126
127
    public function testGetSettingsObjectFromDisabled()
128
    {
@@ 127-134 (lines=8) @@
124
        $this->assertEquals($page, $page->getOptions());
125
    }
126
127
    public function testGetSettingsObjectFromDisabled()
128
    {
129
        /** @var Page|SiteTreeContentReview $page */
130
        $page = $this->objFromFixture(Page::class, "disabled");
131
132
        $this->assertEquals("Disabled", $page->ContentReviewType);
133
        $this->assertFalse($page->getOptions());
134
    }
135
136
    public function testGetOptionObjectFromInheritedDisabled()
137
    {
@@ 136-143 (lines=8) @@
133
        $this->assertFalse($page->getOptions());
134
    }
135
136
    public function testGetOptionObjectFromInheritedDisabled()
137
    {
138
        /** @var Page|SiteTreeContentReview $page */
139
        $page = $this->objFromFixture(Page::class, "page-2-1-1");
140
141
        $this->assertEquals("Inherit", $page->ContentReviewType);
142
        $this->assertFalse($page->getOptions());
143
    }
144
145
    public function testGetOptionObjectFromDeeplyInheritedPage()
146
    {